无法加载捆绑的UITest,因为它已损坏或缺少必要的资源。尝试重新安装捆绑包 [英] The bundle UITests couldn’t be loadedbecause it is damaged or missing necessary resources. Try reinstalling the bundle

查看:70
本文介绍了无法加载捆绑的UITest,因为它已损坏或缺少必要的资源。尝试重新安装捆绑包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的豆荚在这里

# 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

我使用的是Swift 4,Xcode 10.1

I am using 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
    原因:未找到图像)

我尝试了其他解决方案,但没有一个适合我。

I had try different solution but non of them work for me.

这是我的广告连播版本

and here are my pods version

推荐答案

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

The bundle UITests couldn’t be loadedbecause it is damaged or missing necessary resources. Try reinstalling the bundle

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

Verify if all your targets are using the same iOS version in: Build Settings -> iOS Deployment Target

这篇关于无法加载捆绑的UITest,因为它已损坏或缺少必要的资源。尝试重新安装捆绑包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆