【问题标题】:GoogleToolboxForMac framework error [duplicate]GoogleToolboxForMac 框架错误 [重复]
【发布时间】:2016-11-10 20:16:39
【问题描述】:

我尝试将 Google Analytics 添加到我的项目中,但我看到了错误:

ld: framework not found GoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经尝试清理我的项目,尝试删除派生数据,尝试将 pod 'GoogleToolboxForMac/Logger' 添加到 Podfile,尝试删除并重新添加 Pod。但是,没有任何帮助。我在 Stackoverflow 上看到了其他类似主题的所有建议。

什么可能导致所描述的错误,我该如何解决?

【问题讨论】:

标签: ios swift google-analytics swift2 cocoapods


【解决方案1】:

为了消除链接器错误,我必须通过 {projectName} > Build Phases > Link Binary With Libraries 添加 3 个库:

  • 添加其他 > {projectName} > Pods > GoogleAnalytics > 库 > libGoogleAnalytics.a
  • iOS 10.0 > CoreData.Framework
  • iOS 10.0 > libsqlite3.tbd

【讨论】:

    【解决方案2】:

    安装 pod 文件后,请使用 Myapp.xcworkspace。不要使用常规的 Xcode 项目

    【讨论】:

      【解决方案3】:

      您可能在终端上有installed Pod successfully and thereafter you continued with your project by ignoring message

      现在,关闭您的项目并使用 Workspace 打开它。这对我有用!

      【讨论】:

        猜你喜欢
        • 2017-03-14
        • 2018-05-06
        • 2013-02-18
        • 2014-09-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-04-20
        相关资源
        最近更新 更多