iOS ShareKit 在 youtube 上分享视频时出错 invalid_client

iOS ShareKit getting error while sharing video on youtube invalid_client

我们正在使用 ShareKit 在 YouTube 上分享视频,代码工作正常但现在出现错误

<__35-[SHKYouTube authorizationFormShow]_block_invoke SHKYouTube.m:(148)> YouTube authentication finished with error:Error Domain=com.google.HTTPStatus Code=401 "The operation couldn’t be completed. (com.google.HTTPStatus error 401.)" UserInfo=0x19452960 {data=<7b0a2020 22657272 6f722220 3a202269 6e76616c 69645f63 6c69656e 74220a7d>, json={
error = "invalid_client";
 }}

我已经从 GoogleConsole 创建了新的测试密钥,但仍然出现此错误。

使用如下代码:

issue 已被#fixed,实际上它是 API 关键错误。我在 Google 开发人员控制台发现了一个奇怪的问题,当我创建应用程序类型 iOS 时它给我错误,但是当我创建类型为 [= 的应用程序时19=]Others 键工作正常。

步骤 - 创建凭据 -然后- oAuth 客户端 ID -然后- 其他