Search code examples
xcodeiosxib

Xcode shows old, deleted xib files


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.


Solution

  • I ended up recreating the xibs from scratch and that worked. Very frustrating.