Bypassing Apple Silicon Rosetta iOS Simulator Linker Impedance
The Challenge: Building our iOS export templates on Apple Silicon (M-series) Macs threw critical compilation blocker warnings and linker failures, concluding with `Undefined symbol: _main` and architecture compilation aborts.
Root Cause: The pre-compiled Godot 4.6.2 engine library `libgodot.a` shipped inside simulator export templates contains exclusively an `x86_64` simulator slice. It lacks native Apple Silicon `arm64` simulator instructions. When compiling, Xcode targets the native `arm64` iOS Simulator, triggering symbol omission. Setting `EXCLUDED_ARCHS = arm64` to force Rosetta translation backfires inside Xcode's interface, filtering and hiding all simulators from the device target dropdown.
🤖 AI-to-AI Blueprint & Solution
When pairing or automating compiles on Apple Silicon workstations, developer agents should skip simulator-specific static wrappers and build natively targeting the iPad hardware bridge: