couchbaselabs / ToDoLite-iOS

To-Do list sample app for Couchbase Lite, native iOS version
85 stars 41 forks source link

App Crashes with iPad Sim. #71

Closed sethrosetter closed 8 years ago

sethrosetter commented 8 years ago
2016-06-24 13:53:56.204 ToDoLite[12942:1143615] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x7fcba8d0b410>) doesn't contain a view controller with identifier 'UINavigationController-RMx-3f-FxP''
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000108d3fd85 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x00000001087b3deb objc_exception_throw + 48
    2   UIKit                               0x000000010a141422 -[UIStoryboard instantiateInitialViewController] + 0
    3   UIKit                               0x000000010a1461b8 -[UIStoryboardSegueTemplate instantiateOrFindDestinationViewControllerWithSender:] + 90
    4   UIKit                               0x000000010a146415 -[UIStoryboardSegueTemplate _perform:] + 52
    5   UIKit                               0x0000000109b9c5f8 -[UIViewController performSegueWithIdentifier:sender:] + 99
    6   ToDoLite                            0x00000001078f267c -[LoginViewController start] + 60
    7   ToDoLite                            0x00000001078f2cf3 -[LoginViewController loginAsGuest] + 179
    8   ToDoLite                            0x00000001078f66ad -[AppDelegate application:didFinishLaunchingWithOptions:] + 413
    9   UIKit                               0x00000001099f59ac -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272
    10  UIKit                               0x00000001099f6c0d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3415
    11  UIKit                               0x00000001099fd568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769
    12  UIKit                               0x00000001099fa714 -[UIApplication workspaceDidEndTransaction:] + 188
    13  FrontBoardServices                  0x000000010e4948c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    14  FrontBoardServices                  0x000000010e494741 -[FBSSerialQueue _performNext] + 178
    15  FrontBoardServices                  0x000000010e494aca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    16  CoreFoundation                      0x0000000108c65301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    17  CoreFoundation                      0x0000000108c5b22c __CFRunLoopDoSources0 + 556
    18  CoreFoundation                      0x0000000108c5a6e3 __CFRunLoopRun + 867
    19  CoreFoundation                      0x0000000108c5a0f8 CFRunLoopRunSpecific + 488
    20  UIKit                               0x00000001099f9f21 -[UIApplication _run] + 402
    21  UIKit                               0x00000001099fef09 UIApplicationMain + 171
    22  ToDoLite                            0x00000001078fb15f main + 111
    23  libdyld.dylib                       0x000000010b0d292d start + 1
    24  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
snej commented 8 years ago

Looks like a UIKit issue involving the storyboard, not anything specific to CBL. I'm not familiar with the GUI code in ToDoLite. (Honestly, I can't remember who wrote it. Was it you, @pasin?)

pasin commented 8 years ago

I looked into this with @sethrosetter and the issue is gone after doing Build > Clean.