The projects page seems to be disappeared from Xcode 8. I used this page for deleting the derived data.
Any idea how can I delete derived data from within Xcode 8?
In Xcode 8, all the derived data is automatically cleaned. If you want to do it by hand, go to Locations
tab from the Preferences
, locate project's derived data folder, and delete files related to the project.
In macOS 10.12 and later, Xcode cleans up stale derived data, precompiled headers, and module caches. (23282174)
Xcode 8.0 Release Notes
Credits to @charmingToad
But from what I observed, the same behaviour is typical when using Xcode 8 on OS X 10.11.5/6
Go to the root of the project using terminal and then paste the below mentioned line
rm -rf ~/Library/Developer/Xcode/DerivedData
Once it is executed, you can verify by going to Xcode > Preference > Locations -> Tap arrow shows ["DeriveData"] end point.
In your terminal :
rm -rf ~/Library/Developer/Xcode/DerivedData
Steps For Delete DerivedData:
Go
> Go to Folder
Go
buttonXcode projects
Delete
the folders of projects, which you don't need.The simplest and fastest way is the following (if you have not changed the defaults folder for DerivedData).
Open terminal and past the following:
rm -rf ~/Library/Developer/Xcode/DerivedData
If you want to remove derived data manually just run:
rm -rf ~/Library/Developer/Xcode/DerivedData
If you want to free up more disk space there's a few other directories you might want to clear out as well though.
I have created a Bash script for removing all kinds of files generated by Xcode. Removing DerivedData content can be done by running:
./xcode-clean.sh -d
More info at https://github.com/niklasberglund/xcode-clean.sh