The Bundle Uitests Couldn't Be Loadedbecause It Is Damaged or Missing Necessary Resources. Try Reinstalling the Bundle

Test bundle could not be loaded because an unanticipated error

I found the answer by myself.

Your Build Settings -> Architectures should be same for Library and Test Project

Architectures -> Architectures = Standrad Architectures (armv7 ,armv7s ,
arm64)$(ARCHS_STANDARD)

Your Test Project's Linking -> Mach-O Type should be Bundle

Linking -> Mach-O Type = Bundle

Do Build and Run Tests. Thats it

Basic SwiftMonkey-Implementation fails with Bundle couldn't be loaded

I worked with the creators over several days to solve this, and we figured it out :)

All details here: https://github.com/zalando/SwiftMonkey/issues/71

TLDR:
use_frameworks needs to go inside the target-pods of the main target only

platform :ios, '11.0'

target 'AdviceApp' do
use_frameworks!
pod 'SwiftyJSON'
pod 'Firebase/Core'
pod 'Firebase/AdMob'
pod 'SwiftLint'
pod 'SwiftMonkeyPaws'
end

target 'AdviceAppMonkeyTests' do
pod 'SwiftMonkey', '~> 2.1.0'
pod 'SwiftLint'
end

Also alternatively setting the build-system to "legacy" made it work, but that had too much potential to go wrong somewhere else in the future



Related Topics



Leave a reply



Submit