前提・実現したいこと
iOSでの実機テストでケーブルを繋いでXcode上から実行し使用する際には問題無いのですが、Xcodeを使わずに実機上でアプリアイコンをタップして起動すると必ず落ちます。crashログをSymbolicateしたところMyAppの欄、AppDelegate.swift:12と出ます。アプリが落ちるのは起動直後であることは確かなのですが、Xcodeから実行した際には問題ないので原因がわかりません。宜しくお願い致します。
発生している問題・エラーメッセージ
Incident Identifier: 23BE4BB3-BE7B-470E-AFEC-00982F05CDF5 CrashReporter Key: 68a1a40b8a8ca49704fb086b65dd82454eac9c25 Hardware Model: iPad8,8 Process: MyApp [790] Path: /private/var/containers/Bundle/Application/2429DF26-B913-4316-85D5-D2F72AF8817E/MyApp.app/MyApp Identifier: jp.co.aptpod.iOS-MyApp Version: 1 (1.0) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: jp.co.aptpod.iOS-MyApp [1157] Date/Time: 2020-03-01 16:38:50.5406 +0900 Launch Time: 2020-03-01 16:38:50.4660 +0900 OS Version: iPhone OS 13.3.1 (17D50) Release Type: User Baseband Version: 2.04.03 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x1c402e96c __exceptionPreprocess + 224 1 libobjc.A.dylib 0x1c3d47028 objc_exception_throw + 59 2 CoreFoundation 0x1c3f1e14c +[NSException raise:format:] + 111 3 UIFoundation 0x1c767610c UINibDecoderDecodeObjectForValue + 411 4 UIFoundation 0x1c761100c -[UINibDecoder decodeObjectForKey:] + 319 5 UIKitCore 0x1c7dbb9f0 -[UIRuntimeConnection initWithCoder:] + 175 ~ 45 FrontBoardServices 0x1c9271254 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47 46 FrontBoardServices 0x1c9270f00 -[FBSSerialQueue _queue_performNextIfPossible] + 431 47 FrontBoardServices 0x1c927146c -[FBSSerialQueue _performNextFromRunLoopSource] + 31 48 CoreFoundation 0x1c3faa108 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27 49 CoreFoundation 0x1c3faa05c __CFRunLoopDoSource0 + 83 50 CoreFoundation 0x1c3fa97c8 __CFRunLoopDoSources0 + 183 51 CoreFoundation 0x1c3fa4694 __CFRunLoopRun + 1067 52 CoreFoundation 0x1c3fa3f40 CFRunLoopRunSpecific + 479 53 GraphicsServices 0x1ce234534 GSEventRunModal + 107 54 UIKitCore 0x1c812f580 UIApplicationMain + 1939 55 MyApp 0x102b83784 main + 96132 (AppDelegate.swift:12) 56 libdyld.dylib 0x1c3e22e18 start + 3 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001c3e18efc __pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001c3d388b8 pthread_kill + 228 2 libsystem_c.dylib 0x00000001c3cc8a74 abort + 104 3 libc++abi.dylib 0x00000001c3de03c8 __cxa_bad_cast + 0 4 libc++abi.dylib 0x00000001c3de05c0 demangling_unexpected_handler+ 5568 () + 0 5 libobjc.A.dylib 0x00000001c3d47308 _objc_terminate+ 25352 () + 124 6 libc++abi.dylib 0x00000001c3ded634 std::__terminate(void (*)+ 58932 ()) + 20 7 libc++abi.dylib 0x00000001c3ded5c0 std::terminate+ 58816 () + 44 8 libdispatch.dylib 0x00000001c3cd3fec _dispatch_client_callout + 40 9 libdispatch.dylib 0x00000001c3cd6d1c _dispatch_block_invoke_direct + 264 10 FrontBoardServices 0x00000001c9271254 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 11 FrontBoardServices 0x00000001c9270f00 -[FBSSerialQueue _queue_performNextIfPossible] + 432 12 FrontBoardServices 0x00000001c927146c -[FBSSerialQueue _performNextFromRunLoopSource] + 32 13 CoreFoundation 0x00000001c3faa108 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 14 CoreFoundation 0x00000001c3faa05c __CFRunLoopDoSource0 + 84 15 CoreFoundation 0x00000001c3fa97c8 __CFRunLoopDoSources0 + 184 16 CoreFoundation 0x00000001c3fa4694 __CFRunLoopRun + 1068 17 CoreFoundation 0x00000001c3fa3f40 CFRunLoopRunSpecific + 480 18 GraphicsServices 0x00000001ce234534 GSEventRunModal + 108 19 UIKitCore 0x00000001c812f580 UIApplicationMain + 1940 20 MyApp 0x0000000102b83784 main + 96132 (AppDelegate.swift:12) 21 libdyld.dylib 0x00000001c3e22e18 start + 4 Thread 1: 0 libsystem_pthread.dylib 0x00000001c3d3f9e0 start_wqthread + 0 Thread 2: 0 libsystem_pthread.dylib 0x00000001c3d3f9e0 start_wqthread + 0 Thread 3: 0 libsystem_pthread.dylib 0x00000001c3d3f9e0 start_wqthread + 0 Thread 4: 0 libsystem_pthread.dylib 0x00000001c3d3f9e0 start_wqthread + 0 Thread 5 name: com.apple.uikit.eventfetch-thread Thread 5: 0 libsystem_kernel.dylib 0x00000001c3df6c04 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001c3df6020 mach_msg + 76 2 CoreFoundation 0x00000001c3fa9964 __CFRunLoopServiceMachPort + 220 3 CoreFoundation 0x00000001c3fa47fc __CFRunLoopRun + 1428 4 CoreFoundation 0x00000001c3fa3f40 CFRunLoopRunSpecific + 480 5 Foundation 0x00000001c42e9340 -[NSRunLoop+ 33600 (NSRunLoop) runMode:beforeDate:] + 232 6 Foundation 0x00000001c42e9218 -[NSRunLoop+ 33304 (NSRunLoop) runUntilDate:] + 92 7 UIKitCore 0x00000001c81cae9c -[UIEventFetcher threadMain] + 156 8 Foundation 0x00000001c42e7fa4 -[NSThread main] + 40 9 Foundation 0x00000001c4423a74 __NSThread__start__ + 852 10 libsystem_pthread.dylib 0x00000001c3d37840 _pthread_start + 168 11 libsystem_pthread.dylib 0x00000001c3d3f9f4 thread_start + 8 Thread 6: 0 libsystem_pthread.dylib 0x00000001c3d3f9e0 start_wqthread + 0 Thread 7: 0 libsystem_pthread.dylib 0x00000001c3d3f9e0 start_wqthread + 0
該当のソースコード
Swift
1 9 import UIKit 210 311 @UIApplicationMain 412 class AppDelegate: UIResponder, UIApplicationDelegate {
補足情報(FW/ツールのバージョンなど)
Xcode 11.3.1
iOS 13.3.1
Hardware Model:iPad8,8
AppDelegate で落ちたように見えるのは、Xcode がエラーに対応するソースの場所を見つけられなかった場合なので、AppDelegate.swift のソースだけでは何も分かりません。起動直後に落ちるのであれば、起動直後に実行されるであろうコード(最初の View Controller など)のソースを貼ってもらえると何か分かるかもしれません。
あなたの回答
tips
プレビュー