Skip to content

Commit b40f836

Browse files
Merge pull request livecode#7557 from livecodepanos/support_xcode_12.5
[[ Bug 23183 ]] Support building with Xcode 12.5 / iOS 14.5 SDK
2 parents fbadea9 + 735a712 commit b40f836

File tree

9 files changed

+130
-124
lines changed

9 files changed

+130
-124
lines changed

Installer/package.txt

Lines changed: 101 additions & 101 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ EMMAKE ?= emmake
2525

2626
# Some magic to control which versions of iOS we try to build. N.b. you may
2727
# also need to modify the buildbot configuration
28-
IPHONEOS_VERSIONS ?= 10.2 11.2 12.1 13.2 14.4
29-
IPHONESIMULATOR_VERSIONS ?= 10.2 11.2 12.1 13.2 14.4
30-
SKIP_IPHONEOS_VERSIONS ?= 9.2
31-
SKIP_IPHONESIMULATOR_VERSIONS ?= 6.1 7.1 8.2 9.2
28+
IPHONEOS_VERSIONS ?= 11.2 12.1 13.2 14.4 14.5
29+
IPHONESIMULATOR_VERSIONS ?= 11.2 12.1 13.2 14.4 14.5
30+
SKIP_IPHONEOS_VERSIONS ?= 9.2 10.2
31+
SKIP_IPHONESIMULATOR_VERSIONS ?= 6.1 7.1 8.2 9.2 10.2
3232

3333

3434
IOS_SDKS ?= \

config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@
3131
'x86-android-ndk16r15',
3232
'x86_64-android-ndk16r15',
3333
'universal-mac-macosx10.9', # Minimum deployment target
34+
'universal-ios-iphoneos14.5',
3435
'universal-ios-iphoneos14.4',
3536
'universal-ios-iphoneos13.2',
3637
'universal-ios-iphoneos12.1',
3738
'universal-ios-iphoneos11.2',
38-
'universal-ios-iphoneos10.2',
39+
'universal-ios-iphonesimulator14.5',
3940
'universal-ios-iphonesimulator14.4',
4041
'universal-ios-iphonesimulator13.2',
4142
'universal-ios-iphonesimulator12.1',
4243
'universal-ios-iphonesimulator11.2',
43-
'universal-ios-iphonesimulator10.2',
4444
'x86-win32', # TODO[2017-03-23] More specific ABI
4545
'x86_64-win32',
4646
'js-emscripten-sdk1.35',

docs/notes-base/platforms.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,25 @@ The Mac engine supports:
5959
iOS deployment is possible when running LiveCode IDE on a Mac, and provided Xcode is installed and has been set in LiveCode *Preferences* (in the *Mobile Support* pane).
6060

6161
Currently, the supported versions of Xcode are:
62-
* Xcode 8.2 on MacOS X 10.11
6362
* Xcode 9.2 on MacOS 10.12 (Note: You need to upgrade to 10.12.6)
6463
* Xcode 10.1 on MacOS 10.13 (Note: You need to upgrade to 10.13.4)
6564
* Xcode 11.3 on MacOS 10.14 (Note: You need to upgrade to 10.14.4)
6665
* Xcode 12.4 on MacOS 10.15 and above (Note: You need to upgrade to 10.15.4)
66+
* Xcode 12.5 on MacOS 11.0 and above
67+
6768

6869
It is also possible to set other versions of Xcode, to allow testing
69-
on a wider range of iOS simulators. For instance, on MacOS 10.12
70-
(Sierra), you can add *Xcode 8.2* in the *Mobile Support* preferences,
71-
to let you test your stack on the *iOS Simulator 10.2*.
70+
on a wider range of iOS simulators. For instance, on MacOS 10.13
71+
(High Sierra), you can add *Xcode 9.2* in the *Mobile Support* preferences,
72+
to let you test your stack on the *iOS Simulator 11.2*.
7273

7374
We currently support building against the following versions of the iOS SDK:
7475

75-
* 10.2 (included in Xcode 8.2)
7676
* 11.2 (included in Xcode 9.2)
7777
* 12.1 (included in Xcode 10.1)
7878
* 13.2 (included in Xcode 11.3)
7979
* 14.4 (included in Xcode 12.4)
80+
* 14.5 (included in Xcode 12.5)
8081

8182
## Android
8283

docs/notes/bugfix-23183.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add support for building apps against iOS 14.5 SDK

ide-support/revdeploylibraryios.livecodescript

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ local sDeviceSDKs
1818
-- SN-2015-03-24: [[ Bug 15037 ]] Add a consistent, strict list of the
1919
-- SDKs and device relying on the engines we provide in the shipped version
2020
function deployUsableIosSdk
21-
return "10.2,11.2,12.1,13.2,14.4"
21+
return "11.2,12.1,13.2,14.4,14.5"
2222
end deployUsableIosSdk
2323

2424
// SN-2015-05-01: Return the pair iOS SDK / Xcode for the current MacOS version
@@ -28,10 +28,8 @@ function deployGetIphoneOSes
2828
local tList, tMacVersion
2929
put deploySanitizeSystemVersion() into tMacVersion
3030
// Xcode 8.2 can be installed from Mac OSX 10.11.0 onwards
31-
if tMacVersion < 101100 then
32-
answer error "To deploy to an iOS device or simulator, you need to upgrade your Mac to at least Mac OSX 10.11.0"
33-
else if tMacVersion < 101200 then
34-
put "10.2,8.2,10.2" into tList[1]
31+
if tMacVersion < 101200 then
32+
answer error "To deploy to an iOS device or simulator, you need to upgrade your Mac to at least Mac OSX 10.12.0"
3533
else if tMacVersion < 101206 then
3634
put empty into tList[1]
3735
answer error "To use Xcode 9.2, you need to upgrade your Mac to MacOS Sierra 10.12.6"
@@ -50,9 +48,11 @@ function deployGetIphoneOSes
5048
else if tMacVersion < 101504 then
5149
put empty into tList[1]
5250
answer error "To use Xcode 12.4, you need to upgrade your Mac to MacOS Catalina 10.15.4"
53-
else
54-
// Xcode 12.4 requires a Mac running Mac OS 10.15.4 or later
51+
else if tMacVersion < 110000 then
5552
put "14.4,12.4,14.4" into tList[1]
53+
else
54+
// Xcode 12.5 requires a Mac running Mac OS 11.0 or later
55+
put "14.5,12.5,14.5" into tList[1]
5656
end if
5757

5858
return tList
@@ -699,6 +699,10 @@ end deployIsValidSDK
699699
function deploySanitizeSystemVersion
700700
set the itemDel to "."
701701
get the systemVersion
702+
// TODO: Remove this workaround once bug 22887 is fixed
703+
if it is "10.16.0" then
704+
get shell("sw_vers -productVersion")
705+
end if
702706
if the length of item 2 of it is 0 then
703707
put 00 before item 2 of it
704708
else if the length of item 2 of it is 1 then

prebuilt/fetch-libraries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LIBS_win32=( Thirdparty OpenSSL Curl ICU CEF )
1515
LIBS_linux=( Thirdparty OpenSSL Curl ICU CEF )
1616
LIBS_emscripten=( Thirdparty ICU )
1717

18-
SUBPLATFORMS_ios=(iPhoneSimulator10.2 iPhoneSimulator11.2 iPhoneSimulator12.1 iPhoneSimulator13.2 iPhoneSimulator14.4 iPhoneOS10.2 iPhoneOS11.2 iPhoneOS12.1 iPhoneOS13.2 iPhoneOS14.4)
18+
SUBPLATFORMS_ios=(iPhoneSimulator11.2 iPhoneSimulator12.1 iPhoneSimulator13.2 iPhoneSimulator14.4 iPhoneSimulator14.5 iPhoneOS11.2 iPhoneOS12.1 iPhoneOS13.2 iPhoneOS14.4 iPhoneOS14.5)
1919
SUBPLATFORMS_win32=(v141_static_debug v141_static_release)
2020
SUBPLATFORMS_android=(ndk16r15)
2121

prebuilt/scripts/ios.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ else
6868
fi
6969

7070
# Detect iOS variants
71-
checkiOS iphonesimulator10.2 8_2_0 iPhoneSimulator 10.2 "i386 x86_64"
72-
checkiOS iphoneos10.2 8_2_0 iPhoneOS 10.2 "armv7 arm64"
7371
checkiOS iphonesimulator11.2 9_2_0 iPhoneSimulator 11.2 "x86_64"
7472
checkiOS iphoneos11.2 9_2_0 iPhoneOS 11.2 "armv7 arm64"
7573
checkiOS iphonesimulator12.1 10_1_0 iPhoneSimulator 12.1 "x86_64"
@@ -78,3 +76,5 @@ checkiOS iphonesimulator13.2 11_3_0 iPhoneSimulator 13.2 "x86_64"
7876
checkiOS iphoneos13.2 11_3_0 iPhoneOS 13.2 "armv7 arm64"
7977
checkiOS iphonesimulator14.4 12_4_0 iPhoneSimulator 14.4 "x86_64"
8078
checkiOS iphoneos14.4 12_4_0 iPhoneOS 14.4 "armv7 arm64"
79+
checkiOS iphonesimulator14.5 12_5_0 iPhoneSimulator 14.5 "x86_64"
80+
checkiOS iphoneos14.5 12_5_0 iPhoneOS 14.5 "armv7 arm64"

tools/setup_xcode_sdks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/python
22

33
# Update these lists if you need different SDK versions!
4-
iphoneos_versions = ["14.4", "13.2", "12.1", "11.2", "10.2"]
5-
iphonesimulator_versions = ["14.4", "13.2", "12.1", "11.2", "10.2"]
4+
iphoneos_versions = ["14.5", "14.4", "13.2", "12.1", "11.2"]
5+
iphonesimulator_versions = ["14.5", "14.4", "13.2", "12.1", "11.2"]
66
macosx_versions = ["10.9"]
77

88

0 commit comments

Comments
 (0)