iOS单元测试在CocoaPods Google Maps SDK上失败
发布时间:2020-12-14 17:25:17 所属栏目:百科 来源:网络整理
导读:由于使用 Xcode 8将我们的代码库迁移到 Swift 3,我们无法让我们的单元测试运行.该应用程序为商店编译和存档很好,但是当我们尝试运行测试时,它无法构建抱怨: 框架找不到架构x86_64的GoogleMapsBase 我已经检查了我们的podfile,根据最新文档,一切似乎都已正确
由于使用
Xcode 8将我们的代码库迁移到
Swift 3,我们无法让我们的单元测试运行.该应用程序为商店编译和存档很好,但是当我们尝试运行测试时,它无法构建抱怨:
框架找不到架构x86_64的GoogleMapsBase 我已经检查了我们的podfile,根据最新文档,一切似乎都已正确设置. 编辑:下面的Podfile source 'https://github.com/CocoaPods/Specs.git' target "Borked" do platform :ios,'9.3' use_frameworks! pod 'GoogleMaps' pod 'GoogleAnalytics' target "Unit Tests" do inherit! :search_paths end target "UI Tests" do inherit! :search_paths end end 解决方法
像这样的东西应该工作!
source 'https://github.com/CocoaPods/Specs.git' platform :ios,'9.3' use_frameworks! target 'MyApp' do pod 'GoogleMaps' pod 'GoogleAnalytics' target "Unit Tests" do inherit! :search_paths end target "UI Tests" do inherit! :search_paths end end 或这个 source 'https://github.com/CocoaPods/Specs.git' platform :ios,'9.3' use_frameworks! target 'MyApp' do target 'MyExtension' do pod 'GoogleMaps' pod 'GoogleAnalytics' target "Unit Tests" do inherit! :search_paths end target "UI Tests" do inherit! :search_paths end end end (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |