From af33f28716ce93df11e0854cdffcd8cda2b25044 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 30 Dec 2025 00:21:01 +0100 Subject: [PATCH] Xcode doesn't support the iPhone simulator on i386 any more --- dist-build/apple-xcframework.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dist-build/apple-xcframework.sh b/dist-build/apple-xcframework.sh index 76d97e13..74b07492 100755 --- a/dist-build/apple-xcframework.sh +++ b/dist-build/apple-xcframework.sh @@ -60,7 +60,11 @@ else fi I386_SIMULATOR_SUPPORTED=false -[ "$(echo "$IOS_SIMULATOR_VERSION_MIN" | cut -d'.' -f1)" -lt "11" ] && I386_SIMULATOR_SUPPORTED=true +if [ "$(echo "$IOS_SIMULATOR_VERSION_MIN" | cut -d'.' -f1)" -lt "11" ]; then + if echo 'int main(void){return 0;}' | xcrun -sdk iphonesimulator clang -arch i386 -x c - -o /dev/null 2>/dev/null; then + I386_SIMULATOR_SUPPORTED=true + fi +fi VISIONOS_SUPPORTED=false [ -d "${XCODEDIR}/Platforms/XROS.platform" ] && VISIONOS_SUPPORTED=true