Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to "Delete derived data" in Xcode8?

Tags:

xcode

xcode8

In Xcode7 you click Window -> Projects and select the projects that you want the derived data to be deleted.

But with Xcode8 beta 2 the project menu no longer exists under the Windows menu. Are there any quick methods to delete the derived data through Xcode8 interface?

like image 792
oyalhi Avatar asked Jul 06 '16 15:07

oyalhi


People also ask

Where is the derived data folder Xcode?

DerivedData is a folder located in ~/Library/Developer/Xcode/DerivedData by default. It's the location where Xcode stores all kinds of intermediate build results, generated indexes, etc. DerivedData location can be configured in Xcode preferences (Locations tab).

How do I do a clean build in Xcode?

To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder .


2 Answers

  • Close Xcode
  • Open Terminal and enter this command

    rm -rf ~/Library/Developer/Xcode/DerivedData 
like image 96
Ghulam Rasool Avatar answered Sep 27 '22 20:09

Ghulam Rasool


You can not use shift-alt-command-k.

shift-alt-command-k - This will delete all of the products and intermediate files in the build folder.It's different from delete derive data.

Yep, the 'Window/Projects' menu choice is missing, so it's all back to manual now.

Go to Prefs/Locations>Derived Data, where you can tap on the tiny arrow at the end of the derived data path to open it in the Finder, however. Then you have to figure out which one you want to remove.

Below is screenshot..

1) enter image description here

2)2nd way to delete derive data File->Project Setting...

enter image description here

enter image description here

like image 31
Bhoomi Jagani Avatar answered Sep 27 '22 19:09

Bhoomi Jagani