Skip to content

Commit

Permalink
Merge pull request #530 from machupicchubeta/xcodebuild_license
Browse files Browse the repository at this point in the history
Agree the Xcode license
  • Loading branch information
machupicchubeta authored Apr 21, 2024
2 parents be8d9ad + 7350933 commit c770679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/setup_command_line_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ COMMAND_LINE_TOOLS_PATH='/Library/Developer/CommandLineTools'

if [ -d "$COMMAND_LINE_TOOLS_PATH/usr/bin" -a -d "$COMMAND_LINE_TOOLS_PATH/SDKs" ]; then
echo -e "Skip the (re)installation of CommandLineTools.\nSince usr/bin and SDKs directories exist under $COMMAND_LINE_TOOLS_PATH, (re)installation is unlikely to be necessary.\nIf you are forced to re-install, remove those directories before executing the command."
sudo xcodebuild -license accept
exit 0
fi

Expand All @@ -31,3 +32,5 @@ tell application "System Events"
end tell
EOD
xcode-select --print-path

sudo xcodebuild -license accept

0 comments on commit c770679

Please sign in to comment.