Skip to main content

is_ios_simulator

Function is_ios_simulator 

Source
pub const fn is_ios_simulator() -> bool
Expand description

Whether this binary is running on the iOS Simulator (aarch64-apple-ios-sim / x86_64-apple-ios under the simulator), which sets target_abi = "sim". Compile-time constant: the simulator mitigation only needs to apply to simulator builds, never physical-device or desktop ones.