Skip to content

Commit d7243b5

Browse files
authored
Merge pull request #55 from EricFromCanada/master
Check for MinimumSDKVersion key before modifying Info.plist
2 parents 9ef42c7 + ace1255 commit d7243b5

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
@@ -787,7 +787,7 @@ EOF
787787

788788
# Note that we don't look for AS in $AS_DIR/../libexec/as/\$ARCH/as
789789
# because gprbuild (from GNU Ada) calls as with both -m and -arch
790-
# flags, and the arch-specific as doesn'b understand -m32 or -m64.
790+
# flags, and the arch-specific as doesn't understand -m32 or -m64.
791791
# We just look for as in a few places, and if it's not there, we
792792
# look for as-original, starting in the current dir.
793793
# In any case, we prune -m32 and -m64 from the as args.
@@ -1183,7 +1183,7 @@ SPEC_EOF
11831183
# see https://github.com/devernay/xcodelegacy/issues/23
11841184
if [ -f "$PLATFORMDIR/Info.plist-original" ]; then
11851185
echo "*** Not modifying MacOSX Info.plist (found original at $PLATFORMDIR/Info.plist-original, uninstall first to force install)"
1186-
elif [ -f "$PLATFORMDIR/Info.plist" ]; then
1186+
elif [ -f "$PLATFORMDIR/Info.plist" ] && grep -q MinimumSDKVersion "$PLATFORMDIR/Info.plist"; then
11871187
mv "$PLATFORMDIR/Info.plist" "$PLATFORMDIR/Info.plist-original"
11881188
plutil -remove MinimumSDKVersion -o "$PLATFORMDIR/Info.plist" "$PLATFORMDIR/Info.plist-original"
11891189
echo "*** modified MacOSX Info.plist"

0 commit comments

Comments
 (0)