Skip to content

Instantly share code, notes, and snippets.

@murilogteixeira
Forked from riosc/gist:4539602
Last active September 4, 2020 18:22
Show Gist options
  • Save murilogteixeira/f7928d78cf838d8b117642bfb2e848df to your computer and use it in GitHub Desktop.
Save murilogteixeira/f7928d78cf838d8b117642bfb2e848df to your computer and use it in GitHub Desktop.
How to Empty Caches and Clean All Targets Xcode
http://stackoverflow.com/questions/5714372/how-to-empty-caches-and-clean-all-targets-xcode-4
Command-Option-Shift-K to clean out the build folder. Even better, quit Xcode and clean out ~/Library/Developer/Xcode/DerivedData manually.
Remove all its contents because there's a bug where Xcode will run an old version of your project that's in there somewhere.
(Xcode 4.2 will show you the Derived Data folder: choose Window > Organizer and switch to the Projects tab. Click the right-arrow to the right of the Derived Data folder name.)
In the simulator, choose iOS Simulator > Reset Content and Settings.
Finally, for completeness, you can delete the contents of /var/folders; some caching happens there too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment