jjzjj

ios - "ld: framework not found GGLAnalytics for architecture x86_64"测试目标错误

coder 2024-01-17 原文

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

ld: framework not found GGLAnalytics for architecture x86_64

这是我的 Pod 文件:

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,清理构建,删除派生数据,没有任何帮助。仍然出现相同的错误。

最佳答案

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

关于ios - "ld: framework not found GGLAnalytics for architecture x86_64"测试目标错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42934352/

有关ios - "ld: framework not found GGLAnalytics for architecture x86_64"测试目标错误的更多相关文章

随机推荐