From 55693a611cd1563ae3dc54e3c4216e14a9e30bf5 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Wed, 2 Oct 2024 21:49:17 -0400 Subject: [PATCH] apple: Properly adjusting framework supported os version --- pkg/apple/iOS/fw.tmpl | 2 +- pkg/apple/make-frameworks.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/apple/iOS/fw.tmpl b/pkg/apple/iOS/fw.tmpl index 679eb5dfe2b..4dc4a7d2aa1 100644 --- a/pkg/apple/iOS/fw.tmpl +++ b/pkg/apple/iOS/fw.tmpl @@ -13,7 +13,7 @@ CFBundleVersion 1.0.0 MinimumOSVersion - 12.0 + %OSVER% CFBundlePackageType FMWK CFBundleInfoDictionaryVersion diff --git a/pkg/apple/make-frameworks.sh b/pkg/apple/make-frameworks.sh index c8ccbd28d5c..ddd784633bb 100755 --- a/pkg/apple/make-frameworks.sh +++ b/pkg/apple/make-frameworks.sh @@ -24,7 +24,7 @@ elif [ "$PLATFORM_FAMILY_NAME" = "macOS" ] ; then BASE_DIR="OSX" SUFFIX= PLATFORM= - DEPLOYMENT_TARGET= + DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}" fi if [ -n "$BUILT_PRODUCTS_DIR" -a -n "$FRAMEWORKS_FOLDER_PATH" ] ; then @@ -51,7 +51,7 @@ for dylib in $(find "$BASE_DIR"/modules -maxdepth 1 -type f -regex '.*libretro.* vtool -set-build-version "${PLATFORM}" "${DEPLOYMENT_TARGET}" "${build_sdk}" -set-build-tool "$PLATFORM" ld 1115.7.3 -set-source-version 0.0 -replace -output "$dylib" "$dylib" fi lipo -create "$dylib" -output "$fwDir/$fwName" - sed -e "s,%CORE%,$fwName," -e "s,%BUNDLE%,$fwName," -e "s,%IDENTIFIER%,$fwName," iOS/fw.tmpl > "$fwDir/Info.plist" + sed -e "s,%CORE%,$fwName," -e "s,%BUNDLE%,$fwName," -e "s,%IDENTIFIER%,$fwName," -e "s,%OSVER%,$DEPLOYMENT_TARGET," iOS/fw.tmpl > "$fwDir/Info.plist" echo "signing $fwName" codesign --force --verbose --sign "${CODE_SIGN_IDENTITY_FOR_ITEMS}" "$fwDir" done