I have a problem with Xcode that I can\'t seem to resolve. I have a view controller lets call \"foobarViewController\", there was a \"foobarViewController.xib\" to accompany
The AppDelegate load the MainWindow.xib, and in the MainWindow, it include your foobarViewController.xib, therefore your problem occurs. Try editing MainWindow, point it to your controller class instead of including the xib.
Xcode caches the xib files. Possible solutions are:
If you rename your view controller the view will contain only the newer xib file. Older elements will not be shown.
In case you decide to get rid of the xib file and make the view programmatically you can override loadView method in your viewController. Over-ride this method only when you don't want to load the view from a xib file and want to create the view programmatically.
The problem with deleting the app from device/simulator and then building it again: Users who already have the app on their device and install newer version on top of it will continue to see older xib.
In XCode4, Command-Option-Shift-K should do the job. Same as product, press the option key, now the option "Clean" will change to "Clean Build Folder ..." select that option.