diff --git a/build/iOS/deps/freetype.sh b/build/iOS/deps/freetype.sh index a90694919..abf733452 100755 --- a/build/iOS/deps/freetype.sh +++ b/build/iOS/deps/freetype.sh @@ -1,7 +1,6 @@ #!/bin/bash -e . ../sdk.sh -IPHONEOS_DEPLOYMENT_TARGET= FREETYPE_VERSION=2.7 if [ ! -d freetype-src ]; then diff --git a/build/iOS/sdk.sh b/build/iOS/sdk.sh index 755dcbb9e..e37939461 100755 --- a/build/iOS/sdk.sh +++ b/build/iOS/sdk.sh @@ -2,9 +2,9 @@ # This file sets the appropiate compiler and flags for compiling for iOS without XCode sdk=iphoneos +osver=8.0 export IOS_COMPILER=$(xcrun --sdk $sdk --find clang) -export IPHONEOS_DEPLOYMENT_TARGET=8.0 export IOS_CC=$IOS_COMPILER export IOS_CXX=$IOS_COMPILER -export IOS_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch arm64 -Ofast -fvisibility=hidden" +export IOS_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch arm64 -miphoneos-version-min=$osver -Ofast -fvisibility=hidden"