找不到名为的故事板

You*_*mah 9 storyboard ios

当我尝试在iOS模拟器中启动我的应用程序时,我有问题,我需要有人来解决这个问题,我已经尝试了一切,但我仍然有同样的问题我得到了这个错误:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard_iPhone.storyboard' in bundle NSBundle </Users/iYousef911/Library/Application Support/iPhone Simulator/7.1/Applications/F00ED8C4-145B-43C0-ACDA-C41EDC01D824/Azkar.app> (loaded)'
*** First throw call stack:
(
    0   CoreFoundation                      0x029c21e4 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x027418e5 objc_exception_throw + 44
    2   UIKit                               0x01965400 -[UIStoryboard name] + 0
    3   UIKit                               0x01401692 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 53
    4   UIKit                               0x01401949 -[UIApplication _loadMainInterfaceFile] + 245
    5   UIKit                               0x0140054e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543
    6   UIKit                               0x01414f92 -[UIApplication handleEvent:withNewEvent:] + 3517
    7   UIKit                               0x01415555 -[UIApplication sendEvent:] + 85
    8   UIKit                               0x01402250 _UIApplicationHandleEvent + 683
    9   GraphicsServices                    0x03d21f02 _PurpleEventCallback + 776
    10  GraphicsServices                    0x03d21a0d PurpleEventCallback + 46
    11  CoreFoundation                      0x0293dca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
    12  CoreFoundation                      0x0293d9db __CFRunLoopDoSource1 + 523
    13  CoreFoundation                      0x0296868c __CFRunLoopRun + 2156
    14  CoreFoundation                      0x029679d3 CFRunLoopRunSpecific + 467
    15  CoreFoundation                      0x029677eb CFRunLoopRunInMode + 123
    16  UIKit                               0x013ffd9c -[UIApplication _run] + 840
    17  UIKit                               0x01401f9b UIApplicationMain + 1225
    18  Azkar                               0x00002a4d main + 141
    19  libdyld.dylib                       0x0325f701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
Run Code Online (Sandbox Code Playgroud)

man*_*jmv 19

这可能是由于不同的调整.检查以下内容:

  1. 检查故事板名称的拼写.可能是不同的或大写字母可能不同
  2. 通过选择Target-> Build Phases-> Copy Bundle Resources,检查捆绑包资源是否包含此故事板.如果不是通过以下加号按钮添加它.
  3. 从IOS模拟器中删除您的应用程序.然后重新安装该应用程序.
  4. 尝试重命名故事板并在应用程序plist文件中的主故事板文件基名中应用相同的名称.