在做一个工程的时候,我删掉了创建工程时自带的ViewController.h和ViewController.m以及main.storyboard,虽然在AppDelegate.m里面加了一下代码,不至于launch的时候没有View显示:
但是运行的时候就出现错误了:Could not find a storyboard named 'Main' in bundle NSBundle
查过文件后,才发现需要将info.plist里面 main storyboard file base name删掉,如图: