I have an iOS app that I developed years ago using an Intel Mac. I recently started also using an M1 Mac which allows me to run and debug the app directly on MacOS. What it does not let me do is run and debug the app in a simulator. The app fails to link to some dependencies with the error "building for iOS Simulator, but linking in object file built for iOS". The work around suggested is to use Rosetta to run the app in the x64 simulator. I have a simpler workaround which is to just keep using my Intel Mac which is fortunately a recent model.
Some links:
blog.sudeium.com
milanpanchal24.medium.com
stackoverflow.com
Some links:
Build for x86 Simulator on Apple Silicon Macs | iMad
If you’ve got an M1 Mac you might have noticed that when you run Xcode in native Apple Silicon mode, when building for the simulator it’ll use the arm64 ARCH. This is good, except if you’ve got a lot of legacy dependencies that haven’t been updated to support XCFrameworks. Most binary...

Xcode 12, building for iOS Simulator, but linking in object file built for iOS, file for…
Recently, I have updated my Xcode to the latest version (Version 12.2 (12B45b), and my project running fine for real devices. But when I…

Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'
I am trying to get a large (and working on Xcode 11!) project building in Xcode 12 (beta 5) to prepare for iOS 14. The codebase was previously in Objective-C, but now it contains both Objective-C and