【发布时间】:2021-07-11 18:56:09
【问题描述】:
我不得不删除并读取 iOS 并且它最终正在构建,但是 GoogleService-Info.plist 没有被复制到正确的位置,因此它在 xCode 中失败了。我究竟应该将 GoogleService-Info.plist 复制到哪里?它目前位于我项目的根文件夹中,从我所读到的内容中,它应该在构建期间被复制到正确的位置,但没有发生。
libc++abi.dylib: terminating with uncaught exception of type NSException
*** 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/.'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.0.2 - Device: iPhone 12 Pro Max (7DC46B00-B744-47FA-83D8-409FD3FC63EA) - Runtime: iOS 14.2 (18B79) - DeviceType: iPhone 12 Pro Max
【问题讨论】:
-
@ChetanBansal 我在 xCode 中的项目结构没有 RenurKit RenurKit(子文件夹)它只有顶级文件夹。但我确实尝试在那里添加它,但也没有用。
-
我必须将它添加到 xCode 的 Resource 文件夹中
-
你在使用任何推送通知插件吗?如果是,请转到插件文档并查看复制此文件的位置。不同的插件需要不同的位置。
-
@D.Hodges 您不会在您的项目中找到相同的文件夹 - RenurKit。这是特定于您的项目的。确保您正在打开 ios 平台文件夹中的
.xcworkspace文件。检查下面的屏幕截图以验证您的项目是否已包含该文件
标签: ios xcode firebase ionic-framework