为什么错误说0
但我在Xcode项目目录中有这个,与我的包ID匹配?
错误:
Could not locate configuration file: 'GoogleService-Info.plist'
第一次抛出调用堆栈:
2017-09-22 13:12:00.728562+0300 Descent Calculator 2.0[874:187526] [DYMTLInitPlatform] platform initialization successful
2017-09-22 13:12:00.938617+0300 Descent Calculator 2.0[874:187250] [Accessibility] ****************** Loading GAX Client Bundle ****************
2017-09-22 13:12:01.414789+0300 Descent Calculator 2.0[874:187538] [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
2017-09-22 13:12:01.415446+0300 Descent Calculator 2.0[874:187538] [Firebase/Core][I-COR000005] No app has been configured yet.
2017-09-22 13:12:01.499943+0300 Descent Calculator 2.0[874:187250] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.
当我从(0x184713d38 0x183c28528 0x184713c80 0x1040e91b0 0x104086354 0x1040864ac 0x18db92050 0x18dd85898 0x18dd8a6e4 0x18e018454 0x18e2e81f0 0x18e0180b8 0x18e018928 0x18e7816e8 0x18e78158c 0x18e4fd9c0 0x18e692fc8 0x18e4fd870 0x18e2e7850 0x18dd88e28 0x18e18c6ec 0x186db5768 0x186dbe070 0x1056b545c 0x1056c1b74 0x186de9a04 0x186de96a8 0x186de9c44 0x1846bc358 0x1846bc2d8 0x1846bbb60 0x1846b9738 0x1845da2d8 0x18646bf84 0x18db86880 0x104087aec 0x1840fe56c)
libc++abi.dylib: terminating with uncaught exception of type NSException
移除FirebaseApp.configure()
时,我的应用不再崩溃。
答案 0 :(得分:11)
我发现解决方案已在link
中发布第1步:点击GoogleService-info.plist
步骤2:在右侧面板中,转到目标成员资格。看看它是否已经过检查。
我已经使用xcode进行了测试9.希望它能帮助.. :)
答案 1 :(得分:0)
升级到最新的xCode后,请尝试使用
关闭Xcode,打开终端,在其他任何地方之前输入:“defaults delete com.apple.dt.Xcode”(这解决了你的Xcode设置)打开Xcode,你的项目应该正常工作
答案 2 :(得分:0)
我创建了一个具有不同捆绑标识符的新应用,忘了创建新的GoogleService-info.plist - 让我疯狂,直到我遇到这篇文章。