【发布时间】:2017-09-07 06:16:29
【问题描述】:
我已将 GoogleService-Info.plist 放在 app 文件夹的根目录(不是 plaforms/ios/),并且我在 xcode 中构建了该应用程序,它在以下文件中显示错误:
FirebaseAnalyticsPlugin.m:
[FIROptions defaultOptions].deepLinkURLScheme = [FIROptions defaultOptions].bundleID;
错误是:
property 'bundle id' not found on object of type 'FIRoptions'
有人知道如何解决这个问题吗?谢谢
【问题讨论】:
-
您的
GoogleService-Info.plist文件是否包含您应用的正确 bundle-id?选择应用程序的设置时,您可以在 firebase-console 中配置 bundle-id。 -
是的,我在 firebase 控制台上配置了正确的 bundle-id
-
你有没有尝试解决它?删除/读取 ios 平台?
-
@David 我已经尝试 rm/add ios 平台,但仍然有这个问题。这个 plist 文件放在cordova root app 文件夹中还是需要放在platforms/ios/ 中?现在很困惑,不知道为什么会出现这个错误。
-
您使用的插件似乎会导致很多问题(可能是因为需要的 pod),请尝试使用这个:github.com/arnesson/cordova-plugin-firebase,分析对我来说就像使用这个一样魅力。跨度>
标签: angular typescript ionic-framework ionic3 firebase-analytics