您的位置:首页 > 大数据 > 人工智能

Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle

2013-12-17 15:58 459 查看
The simulator is not case sensitive, but the device is. If your storyboard is called MainStoryboard, not MainStoryBoard, this will cause your problem.

I have fixed this issue by following below steps:

Renaming "MainStoryboard.storyboard" to "MainStoryboard_1.storyboard"

Open file "$your_app$-Info.plist" located in "Supporting Files" folder. Edit "Main storyboard file base name" to "MainStoryboard_1.storyboard".

Rerun the app, and it worked for me.

I renamed my storyboard file back to its original "MainStoryboard.storyboard".

Edited the .plist file back to its original.

Rerun the app, and it worked for me.
For some reason the file "MainStoryboard.storyboard"
was not recognised after force quitting Xcode and following above steps made the app recognise the file back again.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  MainStoryBoard
相关文章推荐