You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,6 +63,7 @@ Optionally, one of the following options can be passed as the *first* argument t
61
63
*`-osx1012` : only install OSX 10.12 SDK
62
64
*`-osx1013` : only install OSX 10.13 SDK
63
65
*`-osx1014` : only install OSX 10.14 SDK
66
+
*`-osx1015` : only install OSX 10.15 SDK
64
67
*`-path=path` : install to custom Xcode at 'path'
65
68
66
69
@@ -124,6 +127,7 @@ Here are the latest versions of Xcode that are known to /run/ on each OS X versi
124
127
-[Xcode 8.3.3](https://download.developer.apple.com/Developer_Tools/Xcode_8.3.3/Xcode_8.3.3.xip) on macOS 10.12 (Sierra), please see note on linking below. (\*\*)
125
128
-[Xcode 9.4.1](https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_9.4.1/Xcode_9.4.1.xip) on macOS 10.13 (High Sierra), please see note on linking below. (\*\*)
126
129
-[Xcode 10.3](https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_10.3/Xcode_10.3.xip) on macOS 10.14 (Mojave), please see note on linking below.
130
+
-[Xcode 11.7](https://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_11.7/Xcode_11.7.xip) on macOS 10.15 (Catalina).
127
131
128
132
(\*) These Xcode versions were released before 26.03.2012 and may cause an "An unknown installation error" during installation, which is due to an expired certificate. Installing these may require disabling network time sync and setting the date to 01.01.2012 before installing. Network time sync may be re-enabled after install. See [this stackexchange question](https://apple.stackexchange.com/questions/45841/xcode-4-2-snow-leopard-doesnt-install) for more details.
129
133
@@ -226,4 +230,5 @@ History
226
230
- 2.2 (10/01/2019): Xcode 10 dropped 10.13 SDK, get it from Xcode 9.4.1
227
231
- 2.3 (27/03/2019): Added an option to install in a custom Xcode path
228
232
- 2.4 (10/02/2020): Fix for buildpackages if Xcode 8 or Xcode 9 xip have expired signatures. Also now check for stray Xcode.app if extracting Xcode 9.4.1, Fixes for changed download paths and archive names.
229
-
- 2.5 (01/05/2021): Xcode 11 dropped 10.14 SDK, get it from Xcode 10.3
233
+
- 2.5 (31/04/2021): Xcode 11 dropped 10.14 SDK, get it from Xcode 10.3
234
+
- 2.6 (01/05/2021): Xcode 12 dropped 10.15 SDK, get it from Xcode 11.7
Copy file name to clipboardExpand all lines: XcodeLegacy.sh
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@
30
30
# 2.2 (12/02/2019): Added support for using macOS High Sierra 10.13 SDK from Xcode 9.4.1 for use on Xcode 10/macOS 10.14 Mojave, also changed source of OS X 10.12 SDK to Xcode 8.3.3
31
31
# 2.3 (27/03/2019): Added an option to install in a custom Xcode path
32
32
# 2.4 (10/02/2020): Fix for buildpackages if Xcode 8 or Xcode 9 xip have expired signatures. Also now check for stray Xcode.app if extracting Xcode 9.4.1, Fixes for changed download paths and archive names.
33
+
# 2.5 (31/04/2021): Xcode 11 dropped 10.14 SDK, get it from Xcode 10.3
34
+
# 2.6 (01/05/2021): Xcode 12 dropped 10.15 SDK, get it from Xcode 11.7
33
35
34
36
#set -e # Exit immediately if a command exits with a non-zero status
35
37
#set -u # Treat unset variables as an error when substituting.
@@ -47,6 +49,7 @@ osx1011=0
47
49
osx1012=0
48
50
osx1013=0
49
51
osx1014=0
52
+
osx1015=0
50
53
gotoption=0
51
54
error=0
52
55
@@ -112,6 +115,11 @@ while [[ $error = 0 ]] && [[ $# -gt 1 ]]; do
112
115
osx1014=1
113
116
gotoption=1
114
117
shift
118
+
;;
119
+
-osx1015)
120
+
osx1015=1
121
+
gotoption=1
122
+
shift
115
123
;;
116
124
-path=*)
117
125
CUSTOM_APP="${1#*=}"
@@ -138,6 +146,7 @@ if [ $gotoption = 0 ]; then
138
146
osx1012=1
139
147
osx1013=1
140
148
osx1014=1
149
+
osx1015=1
141
150
fi
142
151
143
152
if [ $#!= 1 ];then
@@ -167,6 +176,7 @@ if [ $# != 1 ]; then
167
176
echo" -osx1012 : only install OSX 10.12 SDK"
168
177
echo" -osx1013 : only install OSX 10.13 SDK"
169
178
echo" -osx1014 : only install OSX 10.14 SDK"
179
+
echo" -osx1015 : only install OSX 10.15 SDK"
170
180
echo" -path=path : A alternative Xcode folder to use. Default is /Application/Xcode.app"
171
181
echo" e.g. -path=/Application/Xcode_8.3.1.app"
172
182
echo"Note that these can be combined. For example, to build and install the 10.9"
@@ -233,6 +243,7 @@ xc7="$(( osx1011 != 0 ))"
233
243
xc8="$(( osx1012!=0))"
234
244
xc9="$(( osx1013!=0))"
235
245
xc10="$(( osx1014!=0))"
246
+
xc11="$(( osx1015!=0))"
236
247
237
248
# The sole argument is the macOS version (e.g. 10.12)
0 commit comments