Apple iOS Simulator on ARM64.
This target is cross-compiled. To build this target Xcode 12 or higher on macOS is required.
The target can be built by enabling it for a
[build] build-stage = 1 target = ["aarch64-apple-ios-sim"]
This target can be cross-compiled from
aarch64 macOS hosts.
Other hosts are not supported for cross-compilation, but might work when also providing the required Xcode SDK.
Currently there is no support to run the rustc test suite for this target.
Note: Building for this target requires the corresponding iOS SDK, as provided by Xcode 12+.
rustc has support for that target and the library artifacts are available,
then Rust programs can be built for that target:
rustc --target aarch64-apple-ios-sim your-code.rs
On Rust Nightly it is possible to build without the target artifacts available:
cargo build -Z build-std --target aarch64-apple-ios-sim
There is no easy way to run simple programs in the iOS simulator. Static library builds can be embedded into iOS applications.