【发布时间】: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 install 和pod update,清理构建,删除派生数据,没有任何帮助。仍然出现同样的错误。
【问题讨论】:
-
似乎与此处讨论的内容相同:github.com/CocoaPods/CocoaPods/pull/5514。有谁知道如何解决这个问题?
标签: ios xcode google-analytics cocoapods