Home / IOS Development / xcode – Xcode12 – building for iOS simulator, but link in object file built for macOS, file ‘dir / SomeFile.a’ for architecture x86_64

xcode – Xcode12 – building for iOS simulator, but link in object file built for macOS, file ‘dir / SomeFile.a’ for architecture x86_64



Gets left error in Xcode 12 when I try to build my big iOS app (hybrid, fast + objc). The application builds well for real devices, but it gives link errors when I try to run in Simulator directly with troubleshooting configuration.

I have tried all possible solutions in another post here, but unfortunately it did not work. Although the error in another post is different. I have checked Build for active architectures only to YES for troubleshooting configurations and NO for release configurations.

Other post error,

building for iOS simulator, but link in object file built for iOS, for architecture arm64

My mistake,

building for iOS Simulator, but link in object file built for macOS, file for architecture x86_64

How can I resolve this issue? I have to run both iOS real device and simulator.


Source link