尝试在我的应用程序中集成Google登录时找不到“ GoogleService-Info.plist”

卡兰 小号

我已关注:将Google登录集成到您的iOS应用中

但是,当我执行该应用程序时,它会在应用程序委托本身中暂停-甚至在我看到我的第一个视图控制器之前。

原因是由于我在"application didFinishLaunchingWithOptions withOptions“”中写了以下几行代码

"NSError* configureError;
[[GGLContext sharedInstance] configureWithError: &configureError];
    NSAssert(!configureError, @"Error configuring Google services: %@", configureError);

 [GIDSignIn sharedInstance].delegate = self;"

在调试中,当到达此代码时,它说

“由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'配置Google服务时出错:Domain = com.google.greenhouse Code = -200错误。无法配置GGL。” UserInfo = 0x7ff9c2e1d000 {NSLocalizedRecoverySuggestion =检查GoogleService的格式和位置-Info.plist。,NSLocalizedDescription =无法配置GGL。,NSLocalizedFailureReason =无法解析提供的GoogleService-Info.plist。有关详细信息,请参阅日志。}'“。

我将放在GoogleService-Info.plist我的目录中,但仍然无法正常工作。

德米特里(Dmitriy Stupivtsev)

我遇到了同样的问题。而且,实际上,当在cocoapods文件中放置“ pod'Google / SignIn'”而不是“ pod Google”时,我解决了。希望它也能对您有所帮助。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

通过Github Actions持续集成平台远程构建Flutter应用程序找不到GoogleService-Info.plist文件

Firebase GoogleService-Info.plist 文件被盗

无法下载GoogleService-Info.plist文件

Xamarin.iOS应用程序项目App无法识别GoogleService-Info.plist

在您的项目中找不到有效的GoogleService-Info.plist

Firebase:我应该将GoogleService-Info.plist添加到.gitignore吗?

在不使用GoogleService-Info.plist的情况下使用iOS版Google Service

“找不到google-services.json或GoogleService-info.plist文件” iOS项目,Unity,Mac计算机

使用GoogleService-Info.plist中的信息访问Firebase前端

科尔多瓦:GoogleService-info.plist出现问题

由于Firebase GoogleService-Info.plist,Codemagic iOS构建失败

FirebasePushNotificationManager.Initialize for iOS 不使用 GoogleService-Info.plist

错误:找不到构建输入文件:“ / Users / GoogleService-Info.plist”(位于项目“ Runner”中的目标“ Runner”中)

在Build短语中处理了不同的配置后,找不到有效的GoogleService-Info.plist

iOS-如何将Firebase Analytics与现有的Google Analytics(分析),GoogleService-Info.plist集成

Flutter-iOS模拟器部署目标“ IPHONEOS_DEPLOYMENT_TARGET”设置为7.0 &&找不到构建输入文件GoogleService-Info.plist

错误:cordova-plugin-fcm:您已经安装了平台ios,但是在Cordova项目根文件夹中找不到文件“ GoogleService-Info.plist”

找不到有效的GoogleService-lnfo.plist

Flutter NSException:配置失败。这可能是由于GoogleService-Info.plist中的GOOGLE_APP_ID无效或在自定义选项中设置了

基于Xamarin中的构建配置,适用于iOS / Android项目的不同的`google-services.json / GoogleService-Info.plist`

XCode的一个目标中有两个GoogleService-Info.plist

GoogleService-info.plist中的构建设置用户定义的设置

适用于iOS的Firebase,GoogleService-Info.plist属性“ IS_ANALYTICS_ENABLED”设置为“ NO”

通过Pod添加Firebase后,Xcode无法识别GoogleService-Info.plist文件

Xcode 项目浏览器不显示“GoogleService-Info.plist”,即使它在目录中

使用swift4对xcode中的单个项目使用不同的GoogleService-Info.plist

替换GoogleService-Info.plist是否足以使其他人的应用程序与我的捆绑包标识符一起工作?

如何在iOS Swift项目中使用两个不同的GoogleService-info.plist文件开发产品?

Xcode“找不到Info.plist路径。”