2

I am trying to move from xcode 3.1 to 4.1 and in the process, I installed Xcode 4.1 and opened project I created with Xcode 3.1. But when I build project, it gives error:

The document "filename.xib" could not be opened. The operation couldn’t be completed. * -[NSCFArray insertObject:atIndex:]: attempt to insert nil.

The file is not full screen View with status bar, it is freeform view.

Thanks, Jignesh

NetDeveloper
  • 509
  • 1
  • 9
  • 20

1 Answers1

0

Try this: goto XCode Menu => File => Add Files to your-project, a finder-like browser will pop up. Navigate to your Classes directory. Do you see the filename.xib and can you click on it? Then add it to your project.

ott--
  • 5,642
  • 4
  • 24
  • 27
  • Hi Ott, Thanks for your answer. I can see the file but unable to click on it. I also tried to remove reference and added file again. but it did not work. Same error occurred. – NetDeveloper Oct 06 '11 at 13:50
  • Maybe the file is corrupt. xib is just a xml textfile, can you look into it with textedit or such (don't edit it), if you see something strange? Normally it is neatly formatted. – ott-- Oct 06 '11 at 13:57
  • Thanks ott!! It is normal xml file and no garbage data.. I think I have to recreate the file. There seems no other option. – NetDeveloper Oct 10 '11 at 15:16
  • Just an update on this... I think that was Xcode problem.. since I installed newer version, it opened without error. – NetDeveloper Oct 05 '12 at 13:55
  • one more update.... I opened in xcode 4.5 but i could not. finally I installed xcode 3.2.* on other mac, opened the project and open the nib file. Created copy of nib file manually... – NetDeveloper Mar 21 '13 at 15:11