Reputation: 2810
Attempting to build project with Swift module. Xcode 12.5.1. Builds fine on Intel machine. Builds fine on M1 machine if building for iOS device. Does not build on M1 machine if building for simulator.
Error: Could not find module xxx for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
There are several pods also being used. Some report building for x86_64. I don't understand why. In particular flurry
.
When it gets to our Swift module xxx its importing, it generates the above error.
I have tried setting Build Active Architecture Only
both Yes and No.
I have tried overriding in Podfile as well.
I have tried adding x86 to list of Architectures
.
What tells Xcode to attempt to build x86 architecture? This is on an M1 machine. There should be no need for x86.
Thanks
Upvotes: 7
Views: 966