Xcode 4.2 Mainstoryboard Not Found

XCode 4.2 MainStoryBoard Not Found

I've seen this happen a handful of times with the files with my students, and today I had it happen to me as well. What seems to fix it for me:

  1. Right-click on your MainStoryboard.storyboard in the Project Navigator.
  2. Select Delete and click Remove References Only.
  3. Right click on InfoPlist.strings and select "Show In Finder". (This is just my lazy way to open the folder containing the storyboard in finder.)
  4. Drag the MainStoryboard.storyboard from Finder back into the project.

My suspicion is that there is a bug somewhere triggered by adding files to the project or certain edits to the storyboard. It causes the localized files to not be copied into the bundle (I think). Removing the storyboard and re-adding it to the project seems to fix the hiccup.

XCode deployment error: 'NSInvalidArgumentException', Could not find a storyboard named 'MainStoryboard'

I got the following similar error in XCode 4.3.3:

Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: 'Could not find a storyboard
named 'MainStoryboard'

I fixed it by doing the following:

  1. Make sure your -info.plist has Main story board file based name = MainStoryboard
  2. Right Click on your Story Board file in Xcode and select Delete then References Only
  3. Right Click on your project and select Add Files to [Your Project]
  4. Navigate to the story board file, found in the en.lproj folder in your projects directory and add it
  5. Clean, Recompile and Run and you should find it works.

Got the idea from this SO post: XCode 4.2 MainStoryBoard Not Found

Can't find or create new Storyboard file in XCode

it seems you are using an old version of xcode, you will have to download xcode 4.2+ version

your current version of xcode is not capable of understanding storyboard files, and since a storyboard is an xml file, its opening it as so

Could not find a storyboard named

This may be due to different reasons. Check the below:

  1. Check the spelling of your storyboard name. Maybe it is different or capital letters may be different
  2. Check your bundle resources contain this storyboard from by selecting Target->Build Phases->Copy Bundle Resources. If not add it by the below plus button.
  3. Delete your app from the iOS Simulator. Then reinstall the app.
  4. Try to rename the storyboard and apply same name in Main storyboard file base name in your application plist file.

XCode 4.2 Version Inspector Hides Storyboard

Right click on the storyboard file -> Open As -> iOS Storyboard

MainStoryboard disappeared after moving project folder

Not much help to anyone but switching the Mac on and off again restored the file, which was a nice surprise.



Related Topics



Leave a reply



Submit