且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法加载捆绑UITests,因为它已损坏或缺少必要的资源。尝试重新安装捆绑包

更新时间:2022-04-15 21:22:41

这是因为你的pod只适用于你的Framework目标而没有测试。将测试目标添加到您的podfile。

It's because your pods only apply to your Framework target and no the tests one. Add the tests target to your podfile.

示例:

target 'MyFramework' do
  use_frameworks!
  pod 'Alamofire', '~> 4.5'
end

target 'MyFrameworkTests' do
  use_frameworks!
  pod 'Alamofire', '~> 4.5'
end