I have installed Xcode 6.2 in 10.9.5, and i dont know why, when i run,
xcodebuild -license
i get this error message,
Error reading /Applications/Xcode. The file doesn’t exist.
By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree
You can view the license agreements in Xcode's About Box, or at /Applications/Xcode 2.app/Contents/Resources/English.lproj/License.rtf
After this i notice that xcodebuild is not well pointed, because 'xcode' folder doesnt exist, i just have 'xcode 2.app', so i dont know if i will have problems in the future, since i am getting this error, and if yes how can i fix it?
Best Answer
It's not a bug. It's how the command line works. If you want to copy a file, you use
cp /path/file /path/copy
. You use spaces to signal a new argument. If you have spaces in your path, you must tell bash to ignore them:cp /path\ with\ spaces/file /path/copy
.If you use
brew
, they have a notice on their website that says that Xcode must not have spaces in the name, otherwise the Xcode command line tools won't work properly. (Brew link: https://github.com/Homebrew/legacy-homebrew/issues/38049 )