Skip to content

Commit ace1255

Browse files
Check for MinimumSDKVersion key before modifying Info.plist
1 parent 2a06334 commit ace1255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XcodeLegacy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ EOF
713713

714714
# Note that we don't look for AS in $AS_DIR/../libexec/as/\$ARCH/as
715715
# because gprbuild (from GNU Ada) calls as with both -m and -arch
716-
# flags, and the arch-specific as doesn'b understand -m32 or -m64.
716+
# flags, and the arch-specific as doesn't understand -m32 or -m64.
717717
# We just look for as in a few places, and if it's not there, we
718718
# look for as-original, starting in the current dir.
719719
# In any case, we prune -m32 and -m64 from the as args.
@@ -1105,7 +1105,7 @@ SPEC_EOF
11051105
# see https://github.com/devernay/xcodelegacy/issues/23
11061106
if [ -f "$PLATFORMDIR/Info.plist-original" ]; then
11071107
echo "*** Not modifying MacOSX Info.plist (found original at $PLATFORMDIR/Info.plist-original, uninstall first to force install)"
1108-
elif [ -f "$PLATFORMDIR/Info.plist" ]; then
1108+
elif [ -f "$PLATFORMDIR/Info.plist" ] && grep -q MinimumSDKVersion "$PLATFORMDIR/Info.plist"; then
11091109
mv "$PLATFORMDIR/Info.plist" "$PLATFORMDIR/Info.plist-original"
11101110
plutil -remove MinimumSDKVersion -o "$PLATFORMDIR/Info.plist" "$PLATFORMDIR/Info.plist-original"
11111111
echo "*** modified MacOSX Info.plist"

0 commit comments

Comments
 (0)