ios – Didn’t load take a look at bundle on Mac M1, discovered x86_64, required arm64


I am working Xcode 13.4.1 on an M1 and making an attempt to run the take a look at bundle.

What I did:

  • Created a goal whose configuration consists of the usual architectures in addition to x86_64.
  • Excluded structure arm64 for that concentrate on.
  • Made positive ‘Construct Lively Structure Solely’ is about to No for this goal.

The undertaking builds efficiently on M1 however the checks instantly fail with the error:
System: Didn't load the take a look at bundle ... mach-o file however is an incompatible structure (have ‘x86_64’, want ‘arm64’)

I checked the construct log and certainly the linker command seems to focus on x86_64, it is at the beginning of the command:
/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-ios11.0-simulator ...

However I believed that is what I am alleged to be doing as I am working this on my M1 simulator. If I attempt to exclude arm64 my undertaking would not construct anymore (I understood this has to do with the best way some pods in my dependencies are working, requiring arm64 to be excluded).

Is there a strategy to make the undertaking construct for M1 however the checks to additionally run?

I noticed comparable questions however nothing matched this case and options did not work.

Leave a Reply