Xcode shows old, deleted xib files

Viewed 6831

I've searched all over and haven't found any help...

I built a small test app with two UIViewControllers and their corresponding xibs. Things were fine, then I made some changes to both xibs but when I build and run, I get the old views. I've tried deleting the build folders, running in the simulator and device, cleaning all targets and still the same, old, broke-down xibs that I totally changed are still showing up. I've restarted all the Xcode apps and even my computer.

Getting pretty irritated!

EDIT: I never did figure out what the problem was. Basically, once I had built a project, it remembered the first xibs I made and wouldn't recognize changes to them. If I told a view controller to load from a different, valid nib name, it'd complain that the old one wasn't there.

I reinstalled Xcode and now it all works again. Sheesh.

13 Answers

just clean the build using

Product -> Clean

menu.

I just had this issue, just delete the app from the simulator.
Then do a clean on your project.
In xCode, go to the Product menu, select Clean.

Or just press Shift+Command+K!

Deleted derived data, cleaned project and build. Old xib was magically removed. :D

Related