gpt4 book ai didi

ios - 在 swift 2 和 xcode 7 beta 4 中设置谷歌分析时出错

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:13:15 27 4
gpt4 key购买 nike

我使用 cocoapods 设置了我的 xcode 项目,添加了 google analytics 作为 pod。之后,我直接在我的项目文件下导入了 GoogleService-info.plist。还创建了桥头,并在 AppdDelegate 中添加了代码。在编译期间,一切运行良好,但是当我启动调试器时,我收到这些错误:

2015-08-14 16:45:25.866 GetOut[30738:3729265] Client ID must not be nil or empty.
2015-08-14 16:45:25.867 GetOut[30738:3729265] Client ID must not be nil or empty.
2015-08-14 16:45:25.867 GetOut[30738:3729265] GCM Sender ID must not be nil or empty.
2015-08-14 16:45:25.867 GetOut[30738:3729265] Attempted to configure [Identity, Analytics, AdMob, SignIn, AppInvite, CloudMessaging].
2015-08-14 16:45:25.867 GetOut[30738:3729265] Successfully configured [Analytics, AdMob].
2015-08-14 16:45:25.867 GetOut[30738:3729265] Failed to configure [SignIn, AppInvite, CloudMessaging].
2015-08-14 16:45:25.867 GetOut[30738:3729265] Subspecs not present, so not configured [Identity].
assertion failed: Error configuring Google services: Optional(Error Domain=com.google.greenhouse Code=-200 "Unable to configure GGL." UserInfo=0x170661400 {NSLocalizedRecoverySuggestion=Check formatting and location of GoogleService-Info.plist., NSLocalizedDescription=Unable to configure GGL., NSLocalizedFailureReason=Unable to parse supplied GoogleService-Info.plist. See log for details.}): file /Users/xxx/Documents/Eigene Dateien/Appdesign/GetOut/GetOut/GetOut/AppDelegate.swift, line 30

调试器在这个屏幕上停止:

0x1006bdeec <+144>: bl     0x1006fc228               ; function signature     specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Exploded> of Swift.(_assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> ()).(closure #1).(closure #1)
0x1006bdef0 <+148>: mov x0, x24
0x1006bdef4 <+152>: bl 0x100749c50 ; swift_release
0x1006bdef8 <+156>: mov x0, x19
0x1006bdefc <+160>: bl 0x100756cc8 ; swift_unknownRelease

在我看来,在处理过程中找不到 .plist - 但我不明白为什么?我查了指南https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift仔细看,还是想不通是什么问题。

最佳答案

我现在解决了这个问题。我将我的 cocoapods 文件从/Google 更改为/GoogleAnalytics - 它起作用了。 –

关于ios - 在 swift 2 和 xcode 7 beta 4 中设置谷歌分析时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32013023/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com