小编Kar*_*. S的帖子

尝试在我的应用中集成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;"
Run Code Online (Sandbox Code Playgroud)

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

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

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

xcode objective-c google-api ios google-signin

14
推荐指数
2
解决办法
3万
查看次数

标签 统计

google-api ×1

google-signin ×1

ios ×1

objective-c ×1

xcode ×1