1

I have an application that was initially working although I got a "could not find xxx.nib file" or something of that sort. This was because I deleted the .xib file from the project and xcode was still looking for it. The error annoyed me and so I fixed it by cleaning the project, resetting the simulator, and deleting all the cache files in ~/var/xcode/... That fixed the error but now I am receiving NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle

3
  • Is it possible that nib/xib was being referenced by the applications Info.plist? (i.e. under "Main nib file base name")? Commented Jul 26, 2013 at 15:22
  • Under that key it says "MainWindow"... is this normal or should I change it. Commented Jul 26, 2013 at 15:41
  • Changing it to a bunch of other classes, xibs, did nothing Commented Jul 26, 2013 at 16:00

1 Answer 1

1

try check and remove line with your xib in list of the Xcode project's Build Phase (may be red color):

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

I've tried this before and the reference to the .xib and its respective header and source are already removed.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.