Run command xcode error:
sh-3.2# xcodebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instanc
Baidu direct error messages to find this post
The reason is that bloggers find:
After the upgrade Xcode, not the system default location. I think I was directly install the latest version of xcode should also be such a problem.
The solution is:
Modify the directory pointed to xcode
xcode-select -s /Applications/Xcode.app/Contents/Developer
Xcodebuild can again perform properly implemented
1 sh-3.2# xcodebuild
2 note: Using new build system
3 note: Planning build
4 note: Constructing build description
5 Build system information
6 error: Signing for "HelloWorld" requires a development team. Select a development team in the project editor. (in target 'HelloWorld') 7 8 ** BUILD FAILED **
I am here build failed because the developers have not configured an account
by the way xcode command to view the installation directory:
This is not modified before xcode command to the new directory is the default location
sh-3.2# xcode-select --print-path
/Library/Developer/CommandLineTools
This is a modified view again, xcode xcode command points to the installation directory has changed
sh-3.2# xcode-select --print-path
/Applications/Xcode.app/Contents/Developer