How can derived data be deleted from a project on Xcode 8?
How can derived data be deleted in Xcode 8?
Ya, that is a little too brute force and will remove all folders inside Derived Data. ( was a response to prior suggestions in thread )
Perhaps a safer way...
1. In Automater under "Files & Folders" you can choose "Ask For Finder Items".
2. Set type to Folders. Check ignore this actions input. Check allow multiple selection.
3. Select the Derived Data folder from Start At. This is kind of a pain because the modal dialog does not show Library. So, you have to use search to get to it. Select the Derived Data folder.
4. In Automater again under "Files & Folders" you can choose "Move Finder Items to Trash". This should take the results from 1 and move them to the Trash. If you have Xcode running it automatically will generate the folder you just moved.
Or if you are still using the script, perhaps tweak the script to choose the last touched directory that has a regex pattern ProjectName-code .
The general problem is asking Xcode which project its got open I suppose. If we could determine that then step 1 above could be modified.
1、Selected project window.
2、File -> Project Settings highlighted.
3、Derived data on Project Settings pop window.
Wow! Thanks for that amazingly helpful bit of information!
Maybe the OP, or anyone else coming to this thread, has not used Xcode 7, smart guy.