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
How to Set Size Leftbarbuttonitem
Urlsession.Shared.Datatask VS Datataskpublisher, When to Use Which
Google Signin: Unable to Disconnect iOS App
Background Image Not Displaying Correctly in iOS
How to Create a Popup Menu in iOS
How to Add a Lock Screen Widget (Requiring iOS 16) and Still Support iOS 15
How to Make a Synchronous Request Using Alamofire
iOS Framework Does Not Work on Simulator
Apn Custom Notification Sound Issue
Swift + Firebase Security Not Working
Swift Delete Multiple Objects at Once Parse Server
Hls Video Streaming on iOS/Safari
What Is The Purpose of Launch Images in an iOS Application
Nsmanagedobject Setter Giving Me [ Myobject Setname:]: Unrecognized Selector Sent to Instance
How to Make Inputaccessoryview Appear Above Uitabbarviewcontroller's Tabs