On my computer there's a folder of nearly 1GB in size at the following path: /private/var/folders/ph/q7jl9fz115g104hfgpsw5k6w0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas
It remains there no matter whether I delete build folders or not. It appears to have every version of my app that I've ever archived in there. What's the purpose of that directory? I'd like to delete it as it's taking up over 900 MB, but I don't know what it's for, and googling did not help. Evidently they have it so well hidden that few people have noticed it before.
As it is user data, no big issue if you delete it completely but it's safer to use 'Reset Content and Settings' option from the menu to delete all of your app data in a Simulator.
To answer my own question YES its completely safe to delete ~/Library/Developer folder if you plan to completely remove your existing Xcode and install a new version.
These apparently are temporary files associated with Xcode, but they don't seem to get cleaned up via a reboot. I followed the advice in this OSX Daily article and was able to clean up the folder by simply booting into safe mode. Just hold down shift while your computer is booting. Be prepared for it to take a few minutes. The folder was completely removed after safe booting.
Just rm -rf
it? That's how I removed mine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With