- Run Disk Utility
- Select the boot disk (usually called Macintosh HD)
- In the File Menu select 'Get Info'
- Scroll down the list and look for 'Owners Enabled', this should say yes but if it says no might explain your problem
- If you are running Xcode from a volume other than your boot disk repeat the above for the appropriate volume to find the same answer
Now assuming the answer is that the respective volume has 'Owners Enabled' set to no i.e. off, then this needs fixing, for a volume other than your boot drive this is fairly easy
- Go to the Finder
- Select the volume - not a file or a folder
- Go the File Menu and select Get Info
- Look at the bottom of the Get Info window for the option 'Ignore ownership on this volume'
- You need to first 'unlock' the Get Info window by clicking on the padlock symbol and entering an admin password
- Then make sure the 'Ignore ownership on this volume' option is not ticked
If it is your boot volume then the process is different. You are probably going to either need to boot from a different volume to do it, or you are going to have to do it via Terminal.app. If your doing it via Terminal you first need to find out the device name for the volume. You would do this by typing
diskutil list
Typically your boot disk is going to be something like /dev/disk0s2 once you have found the right one then the next command would be
sudo diskutil enableOwnership /dev/disk0s2
assuming that /dev/disk0s2 is the right choice.