Skip to content

Commit 40da187

Browse files
committed
fixes for plist
1 parent ae4190a commit 40da187

5 files changed

Lines changed: 82 additions & 10 deletions

File tree

MacCatalyst/Resources/Info.plist.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
<string>%VERSION%</string>
2727
<key>CFBundleSupportedPlatforms</key>
2828
<array>
29-
<string>MacCatalyst</string>
29+
<string>MacOSX</string>
3030
</array>
3131
<key>LSMinimumSystemVersion</key>
32-
<string>11.0</string>
32+
<string>@CATALYST_MACOS_VERSION@</string>
3333
<key>UIDeviceFamily</key>
3434
<array>
3535
<integer>2</integer>

MacCatalyst/Resources/dylib-Info-template.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<string>1.0</string>
1717
<key>CFBundleSupportedPlatforms</key>
1818
<array>
19-
<string>MacCatalyst</string>
19+
<string>MacOSX</string>
2020
</array>
2121
<key>LSMinimumSystemVersion</key>
22-
<string>11.0</string>
22+
<string>11.2</string>
2323
<key>UIDeviceFamily</key>
2424
<array>
2525
<integer>2</integer>

MacCatalyst/testbed/CatalystTestbed/dylib-Info-template.plist

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundlePackageType</key>
14-
<string>APPL</string>
14+
<string>FMWK</string>
1515
<key>CFBundleShortVersionString</key>
1616
<string>1.0</string>
1717
<key>CFBundleSupportedPlatforms</key>
1818
<array>
19-
<string>iPhoneOS</string>
19+
<string>MacOSX</string>
20+
</array>
21+
<key>LSMinimumSystemVersion</key>
22+
<string>11.2</string>
23+
<key>UIDeviceFamily</key>
24+
<array>
25+
<integer>2</integer>
2026
</array>
21-
<key>MinimumOSVersion</key>
22-
<string>12.0</string>
2327
<key>CFBundleVersion</key>
2428
<string>1</string>
2529
</dict>

configure

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,31 @@ AC_ARG_WITH(
890890
])
891891
AC_SUBST([APP_STORE_COMPLIANCE_PATCH])
892892

893+
894+
AC_ARG_WITH([catalyst-macos-version],
895+
[AS_HELP_STRING([--with-catalyst-macos-version=VER],
896+
[The minimum macOS version a Catalyst build can run on (only valid for *-apple-ios*-macabi targets)])],
897+
[case "$host" in
898+
*-apple-ios*-macabi)
899+
CATALYST_MACOS_VERSION="$withval"
900+
;;
901+
*)
902+
AC_MSG_ERROR([--with-catalyst-macos-version is only valid when targeting Mac Catalyst (*-apple-ios*-macabi).])
903+
;;
904+
],
905+
[case "$host" in
906+
*-apple-ios*-macabi)
907+
CATALYST_MACOS_VERSION=11.2
908+
;;
909+
*)
910+
CATALYST_MACOS_VERSION=
911+
;;
912+
]
913+
)
914+
915+
916+
917+
893918
EXPORT_XROS_DEPLOYMENT_TARGET='#'
894919

895920
AC_SUBST([_PYTHON_HOST_PLATFORM])
@@ -915,7 +940,7 @@ if test "$cross_compiling" = yes; then
915940
# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
916941
AC_MSG_CHECKING([iOS deployment target])
917942
IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-)
918-
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=14.0} # else it returns invalid version number
943+
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=14.2} # else it returns invalid version number
919944
AC_MSG_RESULT([$IPHONEOS_DEPLOYMENT_TARGET])
920945

921946
case "$host_cpu" in
@@ -1176,6 +1201,10 @@ AC_SUBST([XROS_DEPLOYMENT_TARGET])
11761201
# XROS_DEPLOYMENT_TARGET should get exported
11771202
AC_SUBST([EXPORT_XROS_DEPLOYMENT_TARGET])
11781203

1204+
# The minimum macOS version that a Mac Catalyst build can run on.
1205+
AC_SUBST([CATALYST_MACOS_VERSION])
1206+
1207+
11791208
# checks for alternative programs
11801209

11811210
# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just

0 commit comments

Comments
 (0)