【问题标题】:GoogleService-Info.plist not created未创建 GoogleService-Info.plist
【发布时间】:2016-03-21 19:44:06
【问题描述】:

我正在为我的 iOS 应用从早期版本的 Google Analytics(分析)升级,当我按照说明 here 进行操作时,我单击按钮创建配置文件,但没有任何反应。还有人经历过这个吗?是否有我可以使用和自定义的默认 GoogleService-Info.plist?

谢谢!

【问题讨论】:

    标签: ios google-analytics


    【解决方案1】:

    似乎是他们网站上的错误。两周前它对我有用。但是您已经找到了 Google 指南 - 配置文件不包含任何复杂的设置,但是您可以下载示例应用程序并从那里获取您的初始 GoogleService-Info.plist 文件:

    pod try Google
    

    来自

    https://developers.google.com/maps/documentation/ios-sdk/code-samples#try-the-sdk-demos-using-cocoapods

    【讨论】:

      【解决方案2】:

      第一次登录谷歌开发者账户时获取配置的步骤t。

      1. open google developer console.
      2. login to developer console.
      3. create project with valid name.
      4. then goto the API section & enable GCM API. 
      5. Then get the configuration file.
      

      【讨论】:

        【解决方案3】:

        感谢您的建议,看起来他们会为其他人工作。不幸的是,我无法让 Cocoa Pods 升级分析,所以我改变了策略并直接使用了sdk。这很好,希望其他人有更好的运气!

        【讨论】:

          猜你喜欢
          • 2020-12-17
          • 1970-01-01
          • 2022-01-06
          • 2016-03-23
          • 1970-01-01
          • 2018-03-06
          • 2017-04-16
          • 2022-11-10
          • 2021-02-18
          相关资源
          最近更新 更多