thread 1 : signal SIGABRT

I don't know how to solve this problem. I haven't got breakpoints and I have revised all my outlets of the main.storyboard and I can't find the error.


2020-01-05 20:42:51.299090+0100 Contacts[1999:158537] *** Assertion failure in +[UIStoryboard storyboardWithName:bundle:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3901.4.2/UIStoryboard.m:100

2020-01-05 20:42:51.330348+0100 Contacts[1999:158537] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: [name length] > 0'

*** First throw call stack:

(

0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350

1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48

2 CoreFoundation 0x00007fff23c70ff8 +[NSException raise:format:arguments:] + 88

3 Foundation 0x00007fff256e9b51 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191

4 UIKitCore 0x00007fff481f85d3 +[UIStoryboard storyboardWithName:bundle:] + 576

5 UIKitCore 0x00007fff476da5be -[UISceneConfiguration initWithName:sessionRole:] + 2026

6 UIKitCore 0x00007fff476d9da8 +[UISceneConfiguration configurationWithName:sessionRole:] + 87

7 UIKitCore 0x00007fff476dba1f -[UISceneSession _initWithIdentifier:sessionRole:configurationName:] + 178

8 UIKitCore 0x00007fff4808eebd -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 327

9 UIKitCore 0x00007fff4808f4b2 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 304

10 UIKitCore 0x00007fff47bfa7f5 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361

11 FrontBoardServices 0x00007fff365d6165 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442

12 FrontBoardServices 0x00007fff365fc4d8 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102

13 FrontBoardServices 0x00007fff365e0c45 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220

14 FrontBoardServices 0x00007fff365fc169 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355

15 libdispatch.dylib 0x0000000108f0ad48 _dispatch_client_callout + 8

16 libdispatch.dylib 0x0000000108f0dcb9 _dispatch_block_invoke_direct + 300

17 FrontBoardServices 0x00007fff3662237e __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30

18 FrontBoardServices 0x00007fff3662206c -[FBSSerialQueue _queue_performNextIfPossible] + 441

19 FrontBoardServices 0x00007fff3662257b -[FBSSerialQueue _performNextFromRunLoopSource] + 22

20 CoreFoundation 0x00007fff23bd4471 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

21 CoreFoundation 0x00007fff23bd439c __CFRunLoopDoSource0 + 76

22 CoreFoundation 0x00007fff23bd3bcc __CFRunLoopDoSources0 + 268

23 CoreFoundation 0x00007fff23bce87f __CFRunLoopRun + 1263

24 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438

25 GraphicsServices 0x00007fff384c0bb0 GSEventRunModal + 65

26 UIKitCore 0x00007fff48092d4d UIApplicationMain + 1621

27 Contacts 0x0000000108be25d4 main + 116

28 libdyld.dylib 0x00007fff5227ec25 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb)

Replies

Could you explain the context of the crash ?

- When launching App ?

- When initiating some action ?


Did you do a Clean Build Folder ?


Could you also post your complete sceneDelegate file and AppDelegate file ?

"Invalid parameter not satisfying: [name length] > 0"


This error message occurred when I removed the value for key "Storyboard Name" in Xcode 11's info.plist. I was attempting to remove references to Main.storyboard and create the storyboards programmatically. The solution for me was to remove the "Storyboard Name" key/value altogether or add a value to "Storyboard Name" depending on the situation.


info.plist/Application Scene Manifest/ Scene Configuration / Application Session Role / Item 0 / Storyboard Name

@geekyChick's solution worked for me I forgot to remove the complete key/value pair and only removed the "main" value, should be more vigilant I guess.
Hi,

This happened to me in the exact situation what GeekyChick described above. I wanted to remove the Main storyboard from the Info.plist alongside deleting the Main.storyboard file as well. If this is the case, you have to remove the "keys" from this Info property list:
  • Application SceneManifest/Scene Configuration/Application Session Role/ Item0/ Storyboard Name

  • Main storyboard file base name

(As I mentioned you have to remove these keys, not just the Main.storyboard value.

With this the error should go away.

@GeekyChick solution solved my problem. Thank you.