Could not find storyboard with name

I have a problem, when I try to run the application in the iOS simulator, I need someone to fix it, please, I tried everything, but still I have the same problem, I got this error:

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) 
+4
source share
2 answers

This may be due to various resonances. Check below:

  • Check the name of your storyboard. Maybe it's different or capital letters may be different.
  • Verify that the resources in your package contain this storyboard by choosing Target-> Build Phases-> Copy Bundle Resources . If you do not add it using the button below +.
  • IOS. .
  • plist .
+12

, , , - . , , , SB.

" " , , .

0

Source: https://habr.com/ru/post/1540315/


All Articles