title: How to Delete Derived Data and Clean Project in Xcode 5 and later?
body: <p>Is there a procedure I can follow that includes running a script in the terminal, to delete all the files under the derived data folder and reliably clean a project?</p>
  
  <p>Sometimes, a project's assets don't always get updated to my simulator or device. It's mostly trial and error, and when I find that an old asset made its way into a test build, it's too late, not to mention embarrassing!</p>
  
  <p>I've looked at this question, but it seems a little outdated:
  <a href="https://stackoverflow.com/questions/5714372/how-to-empty-caches-and-clean-all-targets-xcode-4/">How to Empty Caches and Clean All Targets Xcode 4</a></p>
  
  <p>I also checked out this question, but I don't want to waste time in Organizer, if I don't absolutely need to: <a href="https://stackoverflow.com/questions/24039932/how-to-delete-derived-data-in-xcode6">How to "Delete derived data" in Xcode6?</a></p>
  
  <p>I've looked at other posts out there, but found nothing that solves the problem of reliably cleaning a project and saves time with a script.</p>