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:
- Right-click on your MainStoryboard.storyboard in the Project Navigator.
- Select Delete and click Remove References Only.
- 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.)
- 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:
- Make sure your
-info.plist
has Main story board file based name =MainStoryboard
- Right Click on your Story Board file in Xcode and select Delete then References Only
- Right Click on your project and select Add Files to [Your Project]
- Navigate to the story board file, found in the
en.lproj
folder in your projects directory and add it - 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:
- Check the spelling of your storyboard name. Maybe it is different or capital letters may be different
- 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.
- Delete your app from the iOS Simulator. Then reinstall the app.
- 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
How to Cancel Usernotifications
How to Convert Image into Binary Format in iOS
Custom Font Not Working in Wkwebview Swift
Game Engine Collison Bitmask... Why 0X01 etc
Open Viewcontroller from Tab Like in Instagram Camera Page on iOS
Getting the Action of Uigesturerecognizer in iOS
How to Make Skscene Have Fixed Width
Detox: iOS Simulator How to Confirm Alert Message
Uilabel and Uitextview Line Breaks Don't Match
Confirm Back Button on Uinavigationcontroller
Youtube Video Autoplay Inside Uiwebview
Xcode 5 - "No Application Records Were Found" When Trying to Validate an Archive
How to Properly Send an Image to Cloudkit as Ckasset
Uploading Image with iOS App to Server File Size Is Too Large
Sprite Kit Set Min. and Max. for Jump