Currently in our application we cannot run the iOS simulator on M1 machines because it is expecting x86_64 architecture. Forcing arm64 using the rustc target aarch64-apple-ios can build the project and ship the application but this targets the iOS Device SDK, and will not build in the simulator for testing with this error:
ld: <path/to/lib> building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
rustc should provide an aarch-apple-ios-sim target that uses the iOS Simulator SDK.
Currently in our application we cannot run the iOS simulator on M1 machines because it is expecting
x86_64architecture. Forcingarm64using therustctargetaarch64-apple-ioscan build the project and ship the application but this targets the iOS Device SDK, and will not build in the simulator for testing with this error:rustcshould provide anaarch-apple-ios-simtarget that uses the iOS Simulator SDK.