I have been trying to figure out solution to the following error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle
<../Library/Application Support/iPhone Simulator/7.1/Applications/FA7AFF8D-48A6-4C4D- AE92-B15CF6641C4B/myApp.app> (loaded)'
*** First throw call stack:
Tried all possible solutions given in stack overflow. Nothing worked!!
Thanks for any help!
Go to Build Phases -> project target -> Copy Bundle Resources -> + -> Add storyboard here.If it is there than delete and add.
Clean project and Build and run
在您的Info.plist
文件中,找到“主故事板文件的基本名称”,然后更改故事板名称示例“ MainStoryboard”的值
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.