Reputation: 580
I'm having trouble setting up EarlGrey2 for white box testing. I can setup blackbox fine, but when my bundle is attached to my test target, whenever a test is run the simulator crashes.
Xcode 11.4.1 iOS Sim: 12 & 13
At this point, both my bundle builds successfully, and I can still run EarlGrey black box tests
Simulator - iOS 13.4/usr/include/dispatch/once.h (dispatch_once()) - Line 84:
Thread 1: Exception: "An error: Error Domain=NSCocoaErrorDomain Code=4 \"The bundle “EG2Bundle” couldn’t be loaded because its executable couldn’t be located.\" UserInfo={NSLocalizedFailureReason=The bundle’s executable couldn’t be located., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSBundlePath=/Users/myuser/Library/Developer/CoreSimulator/Devices/91EDC677-10D4-443D-A651-5775031EFBA0/data/Containers/Bundle/Application/E2429B71-0C8E-4D84-81CE-1C4A39BDF291/EarlGreyWhiteBoxTest.app/EarlGreyHelperBundles/EG2Bundle.bundle, NSLocalizedDescription=The bundle “EG2Bundle” couldn’t be loaded because its executable couldn’t be located.} was seen when loading the distant object categories bundle"
If I look manually, the bundle at the NSBundlePath does exist, so I assume i'm missing something because I'm not sure why this doesn't run.
Any help would be really appreciated!
Upvotes: 1
Views: 309