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

Merge pull request #3 from radarhere/sdk

Allow any Xcode 12 version
parents 94c58fdf 290f552e
...@@ -4,8 +4,8 @@ set -e ...@@ -4,8 +4,8 @@ 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" != "" ]) && [ -d /Applications/Xcode_12.2.app ]; then if ([ "$GITHUB_WORKFLOW" != "" ] || [ "$PIPELINE_WORKSPACE" != "" ]) && [ $(ls /Applications | grep Xcode_12.*\.app) ]; then
sudo xcode-select -switch /Applications/Xcode_12.2.app sudo xcode-select -switch /Applications/Xcode_12.*.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
......
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