Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 Beta 4 - Cannot find storyboard every 2nd time I run the project

It might be a beta-prerelease-bug in Xcode, but did anyone other experience the same thing?

I clean the project - Run it - Everything's fine.

Then I stop the project - Run it again - just a black screen and this log:

2015-08-03 23:22:30.743 XXXXXXX[12221:2892479] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle </private/var/mobile/Containers/Bundle/Application/920917A0-44DF-4B5F-91A8-BB669DDF5F0D/XXXXXXXX.app> (loaded)'
*** First throw call stack:
(0x1822542d8 0x193f200e4 0x18728e810 0x186f59edc 0x186f59074 0x186f5770c 0x18aa893c8 0x18220c27c 0x18220b384 0x1822099a8 0x1821352d4 0x186d383d0 0x186d32f40 0x1001ac504 0x1945caa08)
libc++abi.dylib: terminating with uncaught exception of type NSException

Then I can clean it and do the same thing all over...

And yes, the storyboard is added correctly. It's also added correctly in the info.plist and I have also tried to remove it and add it again. With the same result.

UPDATE I

Same thing happens in the latest Xcode Beta 5.

UPDATE II

This is the log from the second time I ran it in a simulator.

2015-08-10 12:09:19.552 XXXXX[32346:418981] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle </Users/johndoe/Library/Developer/CoreSimulator/Devices/9685DA45-378D-48AC-BF8C-0DD2EF24C9B3/data/Containers/Bundle/Application/17882AD9-E024-41A1-9E9B-9DC2C2845EA5/XXXXX.app> (loaded)'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001116e69b5 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000112927deb objc_exception_throw + 48
    2   UIKit                               0x000000010f4564f7 -[UIStoryboard name] + 0
    3   UIKit                               0x000000010ed9b310 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 58
    4   UIKit                               0x000000010ed9b664 -[UIApplication _loadMainInterfaceFile] + 260
    5   UIKit                               0x000000010ed99fc9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1383
    6   UIKit                               0x000000010ed97390 -[UIApplication workspaceDidEndTransaction:] + 188
    7   FrontBoardServices                  0x000000011347b7ac -[FBSSerialQueue _performNext] + 192
    8   FrontBoardServices                  0x000000011347bb1a -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    9   CoreFoundation                      0x0000000111612b21 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    10  CoreFoundation                      0x0000000111608a4c __CFRunLoopDoSources0 + 556
    11  CoreFoundation                      0x0000000111607f03 __CFRunLoopRun + 867
    12  CoreFoundation                      0x0000000111607918 CFRunLoopRunSpecific + 488
    13  UIKit                               0x000000010ed96d2d -[UIApplication _run] + 402
    14  UIKit                               0x000000010ed9b99e UIApplicationMain + 171
    15  Teazr                               0x000000010e78912f main + 111
    16  libdyld.dylib                       0x0000000112ecc92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Could it be some kind of Facebook bug in the new SDK?

like image 380
Simon Degn Avatar asked Aug 03 '15 21:08

Simon Degn


1 Answers

Update Xcode to stable version.

like image 81
Cœur Avatar answered Oct 25 '22 22:10

Cœur