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

Jib*_*Qui 3 ios cocoapods swift swift4

我的豆荚在这里

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'myAPP' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for myAPP
  pod 'SwiftMessages'
  pod 'IQKeyboardManager'
  pod 'SwiftKeychainWrapper'
  pod 'Tabman'
  pod 'PagingMenuController'
  pod 'Kingfisher'
  pod 'Optik'
  pod 'KRPullLoader'
  pod 'AlamofireImage'
  pod 'Firebase/Core'
  pod 'Firebase/Database'
  pod 'Firebase/Messaging'
  pod 'Firebase/Auth'
  pod 'Firebase/Storage'
  pod 'TCPickerView'
  pod 'GoogleMaps'
  pod 'GooglePlaces'
  pod 'Whisper'
  pod 'Fabric'
  pod 'Crashlytics'
  pod 'SwiftyJSON'
  pod 'Alamofire'
  pod 'SwiftGridView'
  target 'myAPPUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end
Run Code Online (Sandbox Code Playgroud)

我正在使用 Swift 4,Xcode 10.1

  1. 无法加载包“myAPPUITests”,因为它已损坏或缺少必要的资源。尝试重新安装捆绑包。myAPPUITests-Runner[3649:845498]
  2. 库未加载:@rpath/Alamofire.framework/Alamofire 引用自:/var/containers/Bundle/Application/9948D3F3-0BC3-4E51-8611-934A8872BC25/myAPPUITests-
  3. Runner.app/PlugIns/myAPPUITests.xctest/myAPPUITests 原因:图片未找到)

我尝试过不同的解决方案,但没有一个对我有用。

这是我的豆荚版本 在此处输入图片说明

Nar*_*ira 7

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

验证您的所有目标是否都使用相同的 iOS 版本:构建设置 -> iOS 部署目标