my pods are here
# 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
I am using swift 4, Xcode 10.1
- The bundle “myAPPUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. myAPPUITests-Runner[3649:845498]
- Library not loaded: @rpath/Alamofire.framework/Alamofire Referenced from: /var/containers/Bundle/Application/9948D3F3-0BC3-4E51-8611-934A8872BC25/myAPPUITests-
- Runner.app/PlugIns/myAPPUITests.xctest/myAPPUITests Reason: image not found)
I had try different solution but non of them work for me.
To install all dependencies, I added these lines to your Podfile:
Then I removed
use_frameworks!
(see this link for more details) from your Podfile, runpod update
and after that I was able to run tests.For more details see this answer.
The bundle UITests couldn’t be loadedbecause it is damaged or missing necessary resources. Try reinstalling the bundle
Verify if all your targets are using the same iOS version in: Build Settings -> iOS Deployment Target
If you are using swift 3 or swift 4 and want to add UITest to your Project than don't forget following steps :
use_frameworks!
from your pod file and update your pod file with pod versions of dependencies like belowpost_install
to specify yourswift version
.ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
Or set Them toNo
in both target app (myAPP & myAPUITests)pod deintegrate
,pod clean
&pod install
# 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
add following at the end of your pod file