Hi Developer Forums,
I'm a sys admin trying to help an Xcode user. If I'm on Sequoia with the latest version of Xcode and XCode command line tools, should I see responses in Terminal for the commands below when executed in Terminal:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
sudo xcodebuild -checkFirstLaunchStatus
Thanks in advance, az
Many commands only produce output if they can't succeed or otherwise encounter an error. For example, using the xcode-select
command in your example set, if you forget the -s
option, you'll get a log informing you the command was invalid, but if you include -s
, you'll get no output because it succeeds. You can also check on the exit code the last command returned by using the shell operator $?
in a script, or directly printing it with syntax such as echo $?
. A successful command is indicated with an exit code of 0
.
— Ed Ford, DTS Engineer