Skip to content

Commit

Permalink
feat (Laerdal.SetupBuildEnvironment.sh): list xcode-sdks from xcode's…
Browse files Browse the repository at this point in the history
… point of view and from sharpie's point of view
  • Loading branch information
ksidirop-laerdal committed Jul 9, 2024
1 parent dcc4740 commit 1064f35
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,33 @@ echo "** XCode Installations:"

ls -ld /Applications/Xcode* || exit 90

sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer # todo experiment with /Applications/Xcode_15.2.app and see if it works
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
declare exitCode=$?
if [ $exitCode != 0 ]; then
echo "##vso[task.logissue type=error]Failed to apply 'xcode-select'."
exit 95
exit 90
fi
echo

echo
echo "** XCode SDKs:"
xcodebuild -showsdks
declare exitCode=$?
if [ $exitCode != 0 ]; then
echo "##vso[task.logissue type=error]Failed to list XCode SDKs."
exit 93
fi

echo
echo "** XCode SDKs from Sharpie's point of view:"
sharpie xcode -sdks
declare exitCode=$?
if [ $exitCode != 0 ]; then
echo "##vso[task.logissue type=error]Failed to list XCode SDKs from Sharpie's point of view."
exit 95
fi


echo "** Java Version:"
java -version
declare exitCode=$?
Expand Down

0 comments on commit 1064f35

Please sign in to comment.