Unverified Commit 0980a823 authored by Isuru Fernando's avatar Isuru Fernando Committed by GitHub
Browse files

Merge pull request #4 from radarhere/sdk

Use latest Xcode version
parents d438254d 47bd6854
......@@ -4,8 +4,9 @@ set -e
if [ "$PLAT" == "arm64" ] || [ "$PLAT" == "universal2" ]; then
if [[ "$(xcrun -show-sdk-version)" == 10.* ]]; then
if ([ "$GITHUB_WORKFLOW" != "" ] || [ "$PIPELINE_WORKSPACE" != "" ]) && [ $(ls /Applications | grep Xcode_12.*\.app) ]; then
sudo xcode-select -switch /Applications/Xcode_12.*.app
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
else
echo "Need SDK>=11 for arm64 builds. Please run xcode-select to select a newer SDK"
exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment