You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"Error: Xcode 16 is required for running the update-api.sh script, because Xcode 26 doesn't include the ObjC public API, but Xcode $XCODE_VERSION is currently selected."
10
-
echo"Please select Xcode 16 using 'sudo xcode-select' or 'xcodes select 16.x'"
11
-
exit 1
9
+
# Try to find an Xcode 16 installation
10
+
XCODE_16_PATH=$(find /Applications -maxdepth 1 -type d -name "Xcode-16*"2>/dev/null | head -n 1)
11
+
12
+
if [[ -n"$XCODE_16_PATH" ]];then
13
+
echo"Xcode $XCODE_VERSION is currently selected, but found Xcode 16 at $XCODE_16_PATH"
echo"Error: Found Xcode installation at $XCODE_16_PATH but it's version $XCODE_16_VERSION, not 16"
23
+
exit 1
24
+
fi
25
+
26
+
echo"Successfully using Xcode 16 ($XCODE_16_VERSION)"
27
+
else
28
+
echo"Error: Xcode 16 is required for running the update-api.sh script, because Xcode 26 doesn't include the ObjC public API, but Xcode $XCODE_VERSION is currently selected."
29
+
echo"Please select Xcode 16 using 'sudo xcode-select' or 'xcodes select 16.x'"
30
+
echo"Alternatively, install Xcode 16 as '/Applications/Xcode-16*.app'"
0 commit comments