【问题标题】:iOS App crashing after Google Analytics integration谷歌分析集成后 iOS 应用程序崩溃
【发布时间】:2016-05-21 03:29:00
【问题描述】:

我正在我的应用程序中集成 Google Analytics [iOS swift 2] 借助:https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift

我已完成以下步骤:
pod '谷歌/分析'
将 Google 提供的代码放在 App Delegate 中,但是当我运行应用程序时它崩溃了

更新【Pod文件截图】:

更新[GoogleService-Info.plist 截图]:

【问题讨论】:

  • 你能显示你的 pod 文件和配置文件吗?
  • @RohitKP:我已经用屏幕截图更新了问题,请检查
  • 同时显示谷歌分析的配置文件
  • 即 .GoogleService-Info.Plist
  • @RohitKP:请检查 GoogleService-Info.plist 的附加 SS

标签: ios google-analytics swift2 ios9.1


【解决方案1】:

这是 crittercism 错误:检查 Press Release 我通过更新 crittercism 库解决了这个问题

【讨论】:

    【解决方案2】:

    请尝试以下 cmets 在您的 mac 上创建 pod 文件并查看

    $ sudo gem install cocoapods
    

    为适用于 iOS 的 Google Analystics SDK 创建一个 Podfile 并使用它来安装 API 及其依赖项:

    在您的项目目录中创建一个名为 Podfile 的文件。这个文件定义了你的项目的依赖,通常被称为 Podspec。

    $ touch podfile
    $ open -e podfile
    

    编辑 Podfile 并添加您的依赖项。

    pod "Google/Analytics"
    

    保存 Podfile。

    打开终端并进入包含 Podfile 的目录:

    $ cd <project-path>
    

    运行 pod install 命令。这将安装 Podspec 中指定的 API,以及它们可能具有的任何依赖项。

    $ pod install
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-21
      • 1970-01-01
      • 2013-12-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多