Unable to sign in to Google from the GooglePlusSam

2020-08-10 06:55发布

I am running the GooglePlusPlatform Sample Code provided by Google to learn about its SDk. However, when I run the application and click on the sign-in button it generates an error as:

Error Domain=com.google.GooglePlusPlatform Code=-1 "keychain error" UserInfo=0x1100bdd0 {NSLocalizedDescription=keychain error}

Same error also occurs in another application I have created which uses the GooglePlus Sign in. I Googled about it, but could not find anything useful. Please help!

3条回答
我欲成王,谁敢阻挡
2楼-- · 2020-08-10 07:40

I actually filed this bug on the Google Services GitHub repo, and got responses from the coders sayings that it´s an Apple Bug and there´s nothing they can do about it.

https://github.com/googlesamples/google-services/issues/82

Good news is, that the problem only happens when Xcode is attached to the phone. It works fine otherwise. So even though it's a pain to test, we shouldn't worry about it being a problem for end users. (fingers crossed)

查看更多
做自己的国王
3楼-- · 2020-08-10 07:43

I see this is not happening in simulator. And on real devices, this happens only when exception break point is created. Just remove that break point and try. It should work.

查看更多
时光不老,我们不散
4楼-- · 2020-08-10 07:50

Go to TARGETS > Capabilities > and enable "KeyChain Sharing".

enter image description here

查看更多
登录 后发表回答