You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- software update technique wasn't finding developer tools/Xcode-CLT
- use `return 0` to bail out of first function when this happens...
this is normal behavior
- make messages clearer while xcode-clt install is attempted
- fix spelling errors
emergency "${this_script}: Xcode-CLT installation and activation failed, unable to continue"
55
58
}
56
59
57
60
maybe_install_xcodeCLT () {
58
61
if [[ "$(need_xcodeCLT)"=="true" ]];then
59
-
xcode_clt_install
62
+
info "It appears that you are on Mac OS and do not have the Xcode command line tools (CLT) installed, or they need to be upgraded."
63
+
info "install.sh will now attempt to install/upgrade the Xcode-CLT using \`softwareupdate\`"
64
+
xcode_clt_install ||true# This usually fails since `softwareupdate -i` doesn't return CLTs needing update
60
65
fi
61
66
if [[ "$(need_xcodeCLT)"=="true" ]];then
62
-
info "First Xcode-CLT installation failed, trying another method"
63
-
headless_xcode_clt_install
67
+
info "\`softwareupdate\`installation/upgrade failed. This is normal. Now trying with \`xcode-select --install\`"
68
+
headless_xcode_clt_install|| emergency "${this_script}: Could not install Xcode command line tools, unable to proceed. Please install them via the app store before retrying this installation."
64
69
fi
65
70
66
71
clang_output="$(/usr/bin/xzrun clang 2>&1)"||true
67
72
if [[ "${clang_output}"=~ license ]];then
68
-
emergency "${this_script}: It appears you have not agreed to the Xcode license. Please do so before attempting to run this script again. This may be acheived by opening Xcode.app or running \`sudo xcodebuild -license\`"
73
+
emergency "${this_script}: It appears you have not agreed to the Xcode license. Please do so before attempting to run this script again. This may be achieved by opening Xcode.app or running \`sudo xcodebuild -license\`"
0 commit comments