Interface Builder could not open the document ".xib" because it does not exist

MrSueko picture MrSueko · Jan 23, 2012 · Viewed 14.5k times · Source

I am localizing an app, following the steps listed here. I have successfully achieved that with around 45 .xib's, while just 4 of them gives me this error:

"Interface Builder could not open the document ".xib" because it does not exist."

when I move them from their original position. I try to move them from their Project/Classes/Example.xib position to the localized one on Project/en.lproj/Example.xib.

Why can't this .xib files be moved?

Answer

Holger picture Holger · Nov 1, 2013

For me it works like this:

  • select project target
  • remove the file from the build phases tab in copy bundle resources
  • re add it to the build phases tab