Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
47bd6854
Commit
47bd6854
authored
Feb 08, 2021
by
Andrew Murray
Browse files
Use latest Xcode version
parent
d438254d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
travis_osx_steps.sh
travis_osx_steps.sh
+3
-2
No files found.
travis_osx_steps.sh
View file @
47bd6854
...
@@ -4,8 +4,9 @@ set -e
...
@@ -4,8 +4,9 @@ set -e
if
[
"
$PLAT
"
==
"arm64"
]
||
[
"
$PLAT
"
==
"universal2"
]
;
then
if
[
"
$PLAT
"
==
"arm64"
]
||
[
"
$PLAT
"
==
"universal2"
]
;
then
if
[[
"
$(
xcrun
-show-sdk-version
)
"
==
10.
*
]]
;
then
if
[[
"
$(
xcrun
-show-sdk-version
)
"
==
10.
*
]]
;
then
if
([
"
$GITHUB_WORKFLOW
"
!=
""
]
||
[
"
$PIPELINE_WORKSPACE
"
!=
""
])
&&
[
$(
ls
/Applications |
grep
Xcode_12.
*
\.
app
)
]
;
then
latestXcode
=
$(
ls
/Applications |
grep
Xcode[_0-9
\.
]
*
\.
app |
sort
-V
|
tail
-n
1
)
sudo
xcode-select
-switch
/Applications/Xcode_12.
*
.app
if
([
"
$GITHUB_WORKFLOW
"
!=
""
]
||
[
"
$PIPELINE_WORKSPACE
"
!=
""
])
&&
[
$latestXcode
]
;
then
sudo
xcode-select
-switch
/Applications/
$latestXcode
.app
else
else
echo
"Need SDK>=11 for arm64 builds. Please run xcode-select to select a newer SDK"
echo
"Need SDK>=11 for arm64 builds. Please run xcode-select to select a newer SDK"
exit
1
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment