简体   繁体   中英

Main.storyboard not found

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM