"Could not find a storyboard called" MainStoryboard "in NSBundle"

I have been working on the application for a long time and now, I got this:

"Could not find a storyboard named MainStoryboard in the NSBundle bundle."

I have similar questions here on StackOverflow, and I tried everything, including: - Renaming the storyboard file - Re-adding the storyboard file - Clear the project - Reset contents and settings on the simulator

I also checked the plist file and the Bundle copy resources and the storyboard name, as it should be. None of this works.

I am developing an application with a friend and we are using Git. The strange thing is that the same version is great for him.

However, in the Copy Bundle resources, MainStoryboard.storyboard and InfoPlist.strings are red. But they were red for a long time without any problems. And my friend (for whom the project works great), they are also red.

enter image description here

Ideas?

+5
source share
4 answers

I would suggest checking that this file is not localized (without actual localization) in order to remove the localization and re-add the file.

If this does not work, have you tried to clone a new copy of the project from Git?

+15
source
  • Select MainStoryboard.storyboard from the project located in the Xcode left panel
  • Click the File Inspector located to the right of Xcode.
  • .
  • infoplist.strings
  • .

  • >
  • , +.
  • .
+4

, Xcode 5, 5.0. Utility iOS 6+, iOS 5.0/5.1.

" " " ", , "" . :

enter image description here

" ", : enter image description here

File Inspector :

enter image description here

. :

enter image description here

- , , , " " ​​ ...

+4
  • .
  • " "
  • Find the main storyboard file if you don’t click the “ +icon at the bottom and add your main storyboard file to it.
  • Now run the project again.
+1
source

All Articles