iOS单元测试在CocoaPods Google Maps SDK上失败

iOS单元测试在CocoaPods Google Maps SDK上失败,第1张

概述由于使用 Xcode 8将我们的代码库迁移到 Swift 3,我们无法让我们的单元测试运行.该应用程序为商店编译和存档很好,但是当我们尝试运行测试时,它无法构建抱怨: 框架找不到架构x86_64的GoogleMapsBase 我已经检查了我们的podfile,根据最新文档,一切似乎都已正确设置. 编辑:下面的Podfile source 'https://github.com/CocoaPods/ 由于使用 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    endend
解决方法 像这样的东西应该工作!

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
总结

以上是内存溢出为你收集整理的iOS单元测试在CocoaPods Google Maps SDK上失败全部内容,希望文章能够帮你解决iOS单元测试在CocoaPods Google Maps SDK上失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1005894.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存