• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ios - 在Swift 2和XCode 7 Beta 4中设置Google Analytics(分析)时出错

[复制链接]
菜鸟教程小白 发表于 2022-12-13 09:51:54 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我设置了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指南,但仍然无法找出问题所在。



Best Answer-推荐答案


我现在解决了这个问题。我将cocoapods文件从/ Google更改为/ GoogleAnalytics-并成功了。 –

关于ios - 在Swift 2和XCode 7 Beta 4中设置Google Analytics(分析)时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32013023/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap