【发布时间】:2018-12-10 23:06:57
【问题描述】:
我正在使用 firebase 在应用程序 iOS 中进行标记。
我在 app、dev、prod、preprod、appStore 中有不同的配置。 所以我在项目中有几个 GoogleService-Info.plist 。
我在 Resources 文件夹中将它们重命名为 GoogleService-Info-Prod.plist、GoogleService-Info-Dev.plist。
我在项目的构建语句中添加了一个运行脚本,
cp "${SRCROOT}/Test/Resourses/Firebase/GoogleService-Info-$CONFIGURATION.plist" "${SRCROOT}/Test/Resourses/Firebase/GoogleService-Info.plist" 我打算 cp 的内容将 GoogleService-Info-blabla.plist 转换为 GoogleService-Info.plist。
但显然,我遇到了这个错误:
2018-07-02 19:05:27.295083+0200 测试 [PROD][63021:19806839] *** 由于未捕获的异常“com.firebase.core”而终止应用程序,原因:“[FIRApp configure]; (@987654323) @ in Swift) 在您的项目中找不到有效的 GoogleService-Info.plist。请从https://console.firebase.google.com/下载一个。'
知道我在哪里犯错了吗? 非常感谢您的关注。
【问题讨论】:
标签: ios firebase configuration google-play-services run-script