Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode shows old, deleted xib files

Tags:

xcode

ios

xib

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.

like image 424
Steve Avatar asked Sep 22 '10 02:09

Steve


1 Answers

Try deleting the app from the simulator (hold down on the app's icon to get to jiggle mode, then click the X by the app) and from your device. Then let Xcode reinstall it.

like image 70
Graham Perks Avatar answered Sep 27 '22 16:09

Graham Perks