Same UI Testing fail with iOS simulator 14.4 but success with iOS simulator 13.7

Hello,

I'm in a big project app with unit testing and ui testing running well.

Recently, one member of team, buy a MacBook Pro M1 with Big Sur 11.1 and try to execute the ui testing with the new Xcode 12.4 (available today 27/01/21 from Mac AppStore).

When he selects any simulator with iOS 13.7 it's ok, but if he selects iOS 14.4 then fail. It doesn't matter if it's an iPad or an iPhone.

The error talks about architectures but the settings haven't any custom config depends iOS version.

Code Block
Showing All Messages
MYAPPUITests-Runner.app (72942) encountered an error (Failed to load the test bundle. If you believe this error represents a bug, please attach the result bundle at /Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Logs/Test/Test-MYAPP-2021.01.27_23-13-22-+0100.xcresult. (Underlying Error: The bundle “MYAPPUITests” couldn’t be loaded because it doesn’t contain a version for the current architecture. The bundle doesn’t contain a version for the current architecture. Try installing a universal version of the bundle. dlopen_preflight(/Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Build/Products/Debug-iphonesimulator/MYAPPUITests-Runner.app/PlugIns/MYAPPUITests.xctest/MYAPPUITests): no suitable image found. Did find:
/Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Build/Products/Debug-iphonesimulator/MYAPPUITests-Runner.app/PlugIns/MYAPPUITests.xctest/MYAPPUITests: mach-o, but wrong architecture))


Why it's ok with iOS 13.7 and why not with iOS 14.4 simulator??

Can you think something ?

Regards.

any findings so far @cplaza? I am running into the same issue.
Same issue here...

Does anybody have a solution for this issue?
Same issue here...

Code Block
The bundle “xxxxxxxTests” couldn’t be loaded because it doesn’t contain a version for the current architecture. Try installing a universal version of the bundle.


Same issue here...

Does anybody have a solution for this issue?
Apple introduced arm64 for simulators in addition to x86_64, but you cannot bundle two different arm64s in the same framework bundle (xxxx and *** have the same architectures (arm64) and can't be in the same fat output file). You need to either exclude the arm64 for the simulator or switch your project to use XCFrameworks (https://developer.apple.com/videos/play/wwdc2019/416/) so you can have arm64 for the simulator and devices

I resolved similar issue by unchecking "Run using Rosetta" (Applications>Xcode CMD+I), also had an example where project test target were started in script using xcodebuild command. So I for M1 I had to explicit set architecture to arm64 by prepending arch -arm64 to xcodebuild command (arch -arm64 xcodebuild bla.bla...).

any solution for this question?

make sure your pods and project have the same settings regarding architecture to use or exclude.

Same UI Testing fail with iOS simulator 14.4 but success with iOS simulator 13.7
 
 
Q