【问题标题】:To where do I manually copy the GoogleService-Info.plist in an Ionic project?在 Ionic 项目中手动将 GoogleService-Info.plist 复制到哪里?
【发布时间】: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


【解决方案1】:

如果您使用的是this plugin

此外,您可以在此处在 xcode 中验证它。plist 文件条目应指向此处的正确位置。如果没有,您可以删除并创建新条目。

【讨论】:

    猜你喜欢
    • 2018-01-01
    • 2019-10-17
    • 2017-08-04
    • 2020-01-07
    • 2018-03-06
    • 1970-01-01
    • 2015-11-03
    • 2016-03-21
    • 1970-01-01
    相关资源
    最近更新 更多