1.Command-Option-Shift-K to clean out the build folder
XCode4.2 finder中找到 /Users/apple/Library/Developer/Xcode (注:Library資源庫是隱藏的文件夾)
里面有DerivedData和Snapshots兩個文件夾,刪除里面文件即可
Remove all its contents because there's a bug where Xcode will run an old version of your project that's in there somewhere.
2.(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.