Search code examples
objective-ciosxcodexcode4

Xcode 4 "Clean" vs. "Clean Build Folder"


You come at a certain point in the development of every app that what you see in the simulator does not match what you think should happen. Mostly these are human errors -- or at least they are in most of my cases ;-) -- but sometimes Xcode has just 'lost track', or so it seems. I've learnt that the Clean (Shift+Cmd+K) and Clean Build Folder… (Option+Shift+Command+K) menu options can show the difference between your error or Xcode's.

My question though is:

What does the Clean command do or not do, which leaves a reason for Clean Build Folder… to exist? When should I pick one over the other, why not just always clean the whole folder?


Solution

  • Clean… cleans the folders for the current selected target.
    Clean Build Folder… cleans the folders for all the targets.