ios – Firebase崩溃. xcode 9.没有googleservice
发布时间:2020-12-14 17:14:58 所属栏目:百科 来源:网络整理
导读:为什么错误说找不到配置文件:’GoogleService-Info.plist’但我在 Xcode项目目录中有它,与我的bundle id匹配? 错误: 2017-09-22 13:12:00.728562+0300 Descent Calculator 2.0[874:187526] [DYMTLInitPlatform] platform initialization successful2017-0
为什么错误说找不到配置文件:’GoogleService-Info.plist’但我在
Xcode项目目录中有它,与我的bundle id匹配?
错误: 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 当我从AppDelegate.swift中删除FirebaseApp.configure()时,我的应用程序将不再崩溃. 解决方法
我发现解决方案发布在
link
第1步:点击GoogleService-info.plist 第2步:在右侧面板中,进入目标成员资格.看看是否检查过. 第3步:单击复选框 我用xcode测试了9.希望它能帮助.. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |