Those aren't actually permissions errors -- if you look at the detailed errors, like Permissions differ on “usr/bin/xcodebuild”; should be lrwxr-xr-x ; they are -rwxr-xr-x .
, the difference is in the first symbol (l
vs. -
), which is the item type, not a permissions flag. The "should be" type, l
, indicates a symbolic link, while -
indicates a plain file. On my computer:
$ ls -l /usr/bin/xcodebuild lrwxr-xr-x 1 root wheel 5 Jul 13 16:35 /usr/bin/xcodebuild -> xcrun
I haven't updated Xcode in a while, so it's possible it should be a plain file in the latest version; or it may be that your install of Xcode is somehow garbled. In either case, the permissions themselves are fine. If there is a problem, it's something ... different.