Help decoding a log file - App Crashes on Load

I have an app written and it works perfectly, without error, in simulator and when running on a phone via xcode.


Once I built my .xcarchive and signed to get the .ipa, I loaded onto the phone using Xcode / Devices Window.


Then, when I click to open the app on the phone, it starts to open and then crashes. 😟


an anyone help point me in a good direction to find my culprit?





(FOR REFERENCE - Line 12 of my appdelegate is:

class AppDelegate: UIResponder, UIApplicationDelegate {



Below is the log file from the phone:


Incident Identifier: 85B2AD8C-683B-4486-860C-D1AEB532D825

CrashReporter Key: 1b0a9b2a0c78297c6a8f3ac66d8af22b790ad094

Hardware Model: iPhone7,2

Process: Go To [281]

Path: /private/var/containers/Bundle/Application/2234A72A-A07B-42B4-95C4-13FF5B6D9872/go to.app/Go To

Identifier: com.****** REMOVED FOR COMPANY PRIVACY ******

Version: 0 (2.0)

Code Type: ARM-64 (Native)

Role: Foreground

Parent Process: launchd [1]

Coalition: com.****** REMOVED FOR COMPANY PRIVACY ****** [433]





Date/Time: 2018-05-22 12:18:16.1496 -0500

Launch Time: 2018-05-22 12:18:15.9287 -0500

OS Version: iPhone OS 11.3.1 (15E302)

Baseband Version: 6.55.00

Report Version: 104



Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Triggered by Thread: 0



Application Specific Information:

abort() called



Filtered syslog:

None found



Last Exception Backtrace:

0 CoreFoundation 0x182ffed8c __exceptionPreprocess + 228

1 libobjc.A.dylib 0x1821b85ec objc_exception_throw + 55

2 UIKit 0x18d54d728 +[UIStoryboard storyboardWithName:bundle:] + 783

3 UIKit 0x18cfaffb8 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 91

4 UIKit 0x18cbcd254 -[UIApplication _loadMainInterfaceFile] + 275

5 UIKit 0x18cb9b550 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1411

6 UIKit 0x18d1cba0c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 783

7 UIKit 0x18cb9ae4c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 159

8 UIKit 0x18cb9ace8 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 239

9 UIKit 0x18cb99b78 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 723

10 UIKit 0x18d82f72c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 295

11 UIKit 0x18cb99268 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 431

12 UIKit 0x18d6149b8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 219

13 UIKit 0x18d762ae8 _performActionsWithDelayForTransitionContext + 111

14 UIKit 0x18cb98c88 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 247

15 UIKit 0x18cb98624 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 367

16 UIKit 0x18cb9565c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 539

17 UIKit 0x18cb953ac -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 363

18 FrontBoardServices 0x1857fc470 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 363

19 FrontBoardServices 0x185804d6c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 223

20 libdispatch.dylib 0x1828f0ae4 _dispatch_client_callout + 15

21 libdispatch.dylib 0x1828f81f4 _dispatch_block_invoke_direct$VARIANT$mp + 223

22 FrontBoardServices 0x185830878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 35

23 FrontBoardServices 0x18583051c -[FBSSerialQueue _performNext] + 403

24 FrontBoardServices 0x185830ab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 55

25 CoreFoundation 0x182fa7404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 23

26 CoreFoundation 0x182fa6c2c __CFRunLoopDoSources0 + 275

27 CoreFoundation 0x182fa479c __CFRunLoopRun + 1203

28 CoreFoundation 0x182ec4da8 CFRunLoopRunSpecific + 551

29 GraphicsServices 0x184ea7020 GSEventRunModal + 99

30 UIKit 0x18cea578c UIApplicationMain + 235

31 Go To 0x1008a9fc4 main + 40900 (AppDelegate.swift:12)

32 libdyld.dylib 0x182955fc0 start + 3





Thread 0 name: Dispatch queue: com.apple.main-thread

Thread 0 Crashed:

0 libsystem_kernel.dylib 0x0000000182a852ec __pthread_kill + 8

1 libsystem_pthread.dylib 0x0000000182c26288 pthread_kill$VARIANT$mp + 376

2 libsystem_c.dylib 0x00000001829f3d0c abort + 140

3 libc++abi.dylib 0x000000018218f2c8 __cxa_bad_cast + 0

4 libc++abi.dylib 0x000000018218f470 default_unexpected_handler+ 5232 () + 0

5 libobjc.A.dylib 0x00000001821b88d4 _objc_terminate+ 35028 () + 124

6 libc++abi.dylib 0x00000001821a937c std::__terminate(void (*)+ 111484 ()) + 16

7 libc++abi.dylib 0x00000001821a9400 std::terminate+ 111616 () + 84

8 libdispatch.dylib 0x00000001828f0af8 _dispatch_client_callout + 36

9 libdispatch.dylib 0x00000001828f81f4 _dispatch_block_invoke_direct$VARIANT$mp + 224

10 FrontBoardServices 0x0000000185830878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36

11 FrontBoardServices 0x000000018583051c -[FBSSerialQueue _performNext] + 404

12 FrontBoardServices 0x0000000185830ab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56

13 CoreFoundation 0x0000000182fa7404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24

14 CoreFoundation 0x0000000182fa6c2c __CFRunLoopDoSources0 + 276

15 CoreFoundation 0x0000000182fa479c __CFRunLoopRun + 1204

16 CoreFoundation 0x0000000182ec4da8 CFRunLoopRunSpecific + 552

17 GraphicsServices 0x0000000184ea7020 GSEventRunModal + 100

18 UIKit 0x000000018cea578c UIApplicationMain + 236

19 Go To 0x00000001008a9fc4 main + 40900 (AppDelegate.swift:12)

20 libdyld.dylib 0x0000000182955fc0 start + 4



Thread 1:

0 libsystem_pthread.dylib 0x0000000182c23b04 start_wqthread + 0



Thread 2:

0 libsystem_pthread.dylib 0x0000000182c23b04 start_wqthread + 0



Thread 3:

0 libsystem_pthread.dylib 0x0000000182c23b04 start_wqthread + 0



Thread 4:

0 libsystem_pthread.dylib 0x0000000182c23b04 start_wqthread + 0



Thread 5 name: com.apple.uikit.eventfetch-thread

Thread 5:

0 libsystem_kernel.dylib 0x0000000182a63e08 mach_msg_trap + 8

1 libsystem_kernel.dylib 0x0000000182a63c80 mach_msg + 72

2 CoreFoundation 0x0000000182fa6e40 __CFRunLoopServiceMachPort + 196

3 CoreFoundation 0x0000000182fa4908 __CFRunLoopRun + 1568

4 CoreFoundation 0x0000000182ec4da8 CFRunLoopRunSpecific + 552

5 Foundation 0x0000000183939674 -[NSRunLoop+ 34420 (NSRunLoop) runMode:beforeDate:] + 304

6 Foundation 0x00000001839394dc -[NSRunLoop+ 34012 (NSRunLoop) runUntilDate:] + 84

7 UIKit 0x000000018cb8a7e4 -[UIEventFetcher threadMain] + 136

8 Foundation 0x0000000183a49efc __NSThread__start__ + 1040

9 libsystem_pthread.dylib 0x0000000182c25220 _pthread_body + 272

10 libsystem_pthread.dylib 0x0000000182c25110 _pthread_body + 0

11 libsystem_pthread.dylib 0x0000000182c23b10 thread_start + 4



Thread 0 crashed with ARM Thread State (64-bit):

x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000010154ccf7

x4: 0x00000001821aeabd x5: 0x000000016f55e4d0 x6: 0x000000000000006e x7: 0xffffffffffffffec

x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000182c26110 x11: 0x0000000000000003

x12: 0xffffffffffffffff x13: 0x0000000000000001 x14: 0x0000000000000000 x15: 0x0000000000000010

x16: 0x0000000000000148 x17: 0x0000000000000300 x18: 0x0000000000000000 x19: 0x0000000000000006

x20: 0x00000001b5202b40 x21: 0x000000016f55e4d0 x22: 0x0000000000000303 x23: 0x00000001b5202c20

x24: 0x0000000000000000 x25: 0x0000000000001d03 x26: 0x00000001b520f5e2 x27: 0x00000001b39bb964

x28: 0x000000010150c678 fp: 0x000000016f55e430 lr: 0x0000000182c26288

sp: 0x000000016f55e400 pc: 0x0000000182a852ec cpsr: 0x00000000

Replies

>> Application Specific Information:

>> abort() called


Since the application aborted itself deliberately, you can expect there will be a log message in the console. The backtrace suggests that the problem is in the loading of the initial storyboard.


If it worked in the simulator and crashed on the device, I would guess that the problem is the case of letters in the storyboard name. (The iOS file system is case sensitive, while the macOS file system that the simulator uses is typically case insensitive.) That doesn't seem to be the problem, if it works on the device when run from Xcode, but perhaps the problem is something of that general nature.

Other than pulling this log from the phone, what else can I use to help identify the issue?

Hmm. You could try Debug -> Attach to Process by PID or Name and tell Xcode to wait for the process, then launch the app on the device. That might attach early enough to catch the exception.


Given the place the exception occurred, it might be something to do with the storyboard. Can you try making another storyboard and setting it as the initial storyboard? It doesn't have to have the right stuff in it, you just want to see if it can get as far as actually loading a storyboard, if it isn't already. If the app gets as far as displaying the initial view, you could try putting in temp code to display alerts to see how much further it gets before throwing the exception.


The other area to consider (where I don't know enough to help) is whether the .ipa contains the correct architecture for the device. If it's just bitcode, I don't think the app will run without turning it into real executable code.