tags:

views:

46

answers:

2

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.

+1  A: 

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.

Graham Perks
I tried that several times. Actually, I had just modified my xibs and not really deleted them. I just did that and emptied the trash. Now I crash because Xcode can't find the xibs! Even though there are new ones with the same names and the same object types. `*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/gazelips/Library/Application Support/iPhone Simulator/4.1/Applications/EF5C7A31-2713-4F32-9B23-FD2A24B0EEAA/Flash.app> (loaded)' with name 'FlashViewController''`
Steve
@Graham Perks - thanks, this fixed my problem where the old XIB was being displayed even after I'd deleted it through Xcode.
Dan J
A: 

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

Steve
You encountered a frustrating problem and kept with it until you solved it. Well done.
No one in particular
I guess that's not new in learning to program, or using very complex tools like this! Thanks for the encouragement!
Steve