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

1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误: Could not find a storyboard named 'Main' in bundle NSBundle

2、删除main.storyboard后,需要在AppDelegate.m中初始化一个window进行使用,否则应用程序没有window可用。

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

原文地址:https://www.cnblogs.com/ygm900/p/3836580.html