CwlPreconditionTesting icon indicating copy to clipboard operation
CwlPreconditionTesting copied to clipboard

Apple Silicon under Rosetta

Open asiliuk opened this issue 4 years ago • 1 comments

Looks like assertion is still raised if run on M1 under Rosetta. This could happen if target simulator is less then iOS 13.7 or by checking "Open with Rosetta" on Xcode app.

image showing EXC_BAD_INSTRUCTION

I have too little knowledge to try and fix it myself, is it even possible to address? It compiles sources with x86_64 architecture and I'm not sure how to differentiate Intel vs Apple Silicon

Maybe you have any suggestions where to start? Thank you!

asiliuk avatar Feb 06 '22 10:02 asiliuk

I have the same problem, would love to see a solution

Veeit avatar Feb 23 '22 11:02 Veeit

Sorry to take so long to comment on this issue. As far as I can tell, this is an issue with lldb on Rosetta, not with the code itself – lldb always interferes and stop the execution when the bad exception is raised, despite the handler being in-place and the code working correctly.

To move past this, you must run these tests without debugging the executable. i.e. with the "Debug executable" unchecked in the scheme's "Test" settings:

Image 2-4-2023 at 16 27

mattgallagher avatar Apr 02 '23 06:04 mattgallagher