【问题标题】:"ld: framework not found GGLAnalytics for architecture x86_64" error on Test target测试目标上的“ld: framework not found GGLAnalytics for architecture x86_64”错误
【发布时间】:2017-03-22 02:23:36
【问题描述】:

我最近在我的应用中添加了 CocoaPods,以便使用 Google Analytics。该应用程序运行良好,但不再构建单元测试。尝试运行单元测试时出现以下错误:

ld: framework not found GGLAnalytics for architecture x86_64

这是我的 Podfile:

target 'MyApp' do

  use_frameworks!

  pod 'Google/Analytics'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'MyAppUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

我尝试将pod 'Google/Analytics' 放在测试目标中,然后运行pod installpod update,清理构建,删除派生数据,没有任何帮助。仍然出现同样的错误。

【问题讨论】:

标签: ios xcode google-analytics cocoapods


【解决方案1】:

此问题已通过升级到 CocoaPods 1.2.1.beta.1 (sudo gem install cocoapods --pre) 并重新运行 pod install 得到解决。

【讨论】:

    猜你喜欢
    • 2016-05-21
    • 2015-04-23
    • 1970-01-01
    • 1970-01-01
    • 2013-08-31
    • 1970-01-01
    • 2020-08-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多