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
56258b40
Unverified
Commit
56258b40
authored
Feb 22, 2021
by
Matthew Brett
Committed by
GitHub
Feb 22, 2021
Browse files
Merge pull request #391 from isuruf/sdk
Fix for sdk version when xcrun returns nothing
parents
53c7c2e5
b139e062
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
travis_osx_steps.sh
travis_osx_steps.sh
+11
-2
No files found.
travis_osx_steps.sh
View file @
56258b40
...
...
@@ -2,13 +2,22 @@
# Wheel build, install, run test steps on OSX
set
-e
function
check_sdk_11
{
ver
=
"
$(
xcrun
-show-sdk-version
)
"
if
[[
"
${
ver
}
"
==
""
||
"
${
ver
}
"
==
10.
*
]]
;
then
echo
"not found"
else
echo
"found"
fi
}
if
[
"
$PLAT
"
==
"arm64"
]
||
[
"
$PLAT
"
==
"universal2"
]
;
then
if
[[
"
$(
xcrun
-show-sdk-version
)
"
==
10.
*
]]
;
then
if
[[
"
$(
check_sdk_11
)
"
==
"not found"
]]
;
then
latestXcode
=
$(
ls
/Applications |
grep
Xcode[_0-9
\.
]
*
\.
app |
sort
-V
|
tail
-n
1
)
if
([
"
$GITHUB_WORKFLOW
"
!=
""
]
||
[
"
$PIPELINE_WORKSPACE
"
!=
""
])
&&
[
$latestXcode
]
;
then
sudo
xcode-select
-switch
/Applications/
$latestXcode
.app
fi
if
[[
"
$(
xcrun
-show-sdk-version
)
"
==
10.
*
]]
;
then
if
[[
"
$(
check_sdk_11
)
"
==
"not found"
]]
;
then
echo
"Need SDK>=11 for arm64 builds. Please run xcode-select to select a newer SDK"
exit
1
fi
...
...
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