I have an Xcode4 (4.1 on Lion) iOS project that has a XIB file and corresponding .h and .m files. Call it myViewController.xib.
The file does nothing and I want to delete it. However, if I do delete it from within Xcode I cannot compile the project anymore. I get the error that interface builder could not open the file.
I checked every other file in the project. There is no other reference to "myViewController" anywhere that I can find in the project. I did a project search and nothing showed. A Spotlight search shows no files containing "myViewController"
If I just remove the reference to the files and leave the files on the drive, the project won't compile. This happened under Xcode 4.02 and Snow Leopard also so I know Lion is not to blame.
I tried moving the project to another computer and it won't compile there with the same error even though the "myViewController" file is there. I can show in finder and see the file!
Anybody have any ideas? I'm plum out of them.