mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-07-27 12:22:12 +00:00
The Xcode "Build Fluxa Rust Core" run-script phase runs this script with SDKROOT already exported for whichever platform Xcode is currently building (e.g. iphonesimulator for the FluxaIos scheme). That ambient value leaks into cc's default sysroot for every target this script loops over, including unrelated ones, so linking the aarch64-apple-tvos build picked up an iphonesimulator libiconv and failed with "building for tvOS, but linking in dylib built for iOS-simulator". Override SDKROOT per target using the same SDK path already resolved for bindgen, so each cargo build gets a sysroot matching its own target. |
||
|---|---|---|
| .. | ||
| build-rust-core-xcframework.sh | ||