From 3599403a4b7c8df7e338a4e6980394fc9331c64d Mon Sep 17 00:00:00 2001 From: Adam Tunnic Date: Thu, 3 Jun 2021 00:15:22 +0700 Subject: [PATCH] Set minimum deployment target to iOS 12 The default minimum iOS target used to be iOS 11, and while PojavLauncher would *run*, the experience would be terrible at beast. Microsoft authentication would crash the app, as the iOS 11 methods were deprecated and replace in iOS 12, and OpenJDK would be missing features as 1) Procursus isn't supported on iOS 11 and 2) the JDK targets iOS 12 and higher. This commit forces the scripts to build for iOS 12 at the minimum so iOS 11 doesn't give off errors during compile time and when installing. --- scripts/build_natives.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build_natives.sh b/scripts/build_natives.sh index 9db3b50a..f860f75e 100755 --- a/scripts/build_natives.sh +++ b/scripts/build_natives.sh @@ -2,12 +2,14 @@ set -e +rm -rf Natives/build + # Compile natives cd Natives mkdir -p build cd build wget https://github.com/leetal/ios-cmake/raw/master/ios.toolchain.cmake -cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DPLATFORM=OS64 -DENABLE_BITCODE=FALSE -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED="NO" -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="" +cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DDEPLOYMENT_TARGET="12.0" -DENABLE_ARC=TRUE -DENABLE_VISIBILITY=FALSE -DPLATFORM=OS64 -DENABLE_BITCODE=FALSE -DENABLE_STRICT_TRY_COMPILE=FALSE -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED="NO" -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="" cmake --build . --config Release --target pojavexec PojavLauncher cd ../..