如何调试 iOS 应用程序在启动时崩溃,仅在程序集文件中设置断点

2024-04-28

我遇到了当前正在开发的应用程序的问题。 问题是应用程序在启动时在后台运行一段时间后崩溃,并且仅在这种情况下。 在应用程序被杀死时启动应用程序不会导致调试器或手机崩溃。 无论是否进行调试,在后台启动应用程序大约 5-10 分钟都不会导致崩溃。 在后台启动应用程序大约 15-20 分钟会导致崩溃。使用调试器和异常断点给了我这个文件:

libdispatch.dylib`_dispatch_assert_queue_fail:
0x349c6ce4:  push   {r4, r5, r7, lr}
0x349c6ce6:  add    r7, sp, #0x8
0x349c6ce8:  sub    sp, #0xc
0x349c6cea:  movw   r5, #0x7810
0x349c6cee:  mov    r4, r0
0x349c6cf0:  movt   r5, #0x1
0x349c6cf4:  movw   r12, #0x7af0
0x349c6cf8:  movt   r12, #0x1
0x349c6cfc:  movw   r9, #0x7a83
0x349c6d00:  movt   r9, #0x1
0x349c6d04:  ldr    r0, [r4, #0x48]
0x349c6d06:  movw   r2, #0x7a93
0x349c6d0a:  movt   r2, #0x1
0x349c6d0e:  movw   r3, #0x7af5
0x349c6d12:  movt   r3, #0x1
0x349c6d16:  add    r5, pc
0x349c6d18:  cmp    r0, #0x0
0x349c6d1a:  it     ne
0x349c6d1c:  movne  r5, r0
0x349c6d1e:  add    r12, pc
0x349c6d20:  add    r9, pc
0x349c6d22:  add    r3, pc
0x349c6d24:  cmp    r1, #0x0
0x349c6d26:  add    r2, pc
0x349c6d28:  strd   r4, r5, [sp]
0x349c6d2c:  it     ne
0x349c6d2e:  movne  r3, r12
0x349c6d30:  add    r0, sp, #0x8
0x349c6d32:  mov    r1, r9
0x349c6d34:  blx    0x349dda4c                ; symbol stub for: -[OS_object retainWeakReference]
0x349c6d38:  movw   r0, #0x7ae0
0x349c6d3c:  movt   r0, #0x1
0x349c6d40:  ldr    r1, [sp, #0x8]
0x349c6d42:  add    r0, pc
0x349c6d44:  bl     0x349c65cc                ; _dispatch_log
0x349c6d48:  trap   
0x349c6d4a:  nop    

调试器在陷阱行上中断,就在末尾的 nop 之前:

Thread 1: EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)

我找不到任何关于如何调试这个的线索。

任何帮助,将不胜感激。

编辑:这是带有堆栈跟踪的崩溃日志(我用 DeviceName 替换了我的设备名称,用 com.company.myAppName 替换了应用程序名称和我的公司名称):

Sep 22 11:36:31 DeviceName locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Sep 22 11:36:31 DeviceName myAppName[6750] <Warning>: *** Assertion failure in -[UIFetchContentInBackgroundAction sendResponse:], /SourceCache/BaseBoard/BaseBoard-97/BaseBoard/BSAction.m:221
Sep 22 11:36:32 DeviceName myAppName[6750] <Notice>: BUG in client of libdispatch: Assertion failed: Block was run on an unexpected queue
    Expected queue: 0x0x3713cd40[com.apple.main-thread]
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Notice>: ReportCrash acting against PID 6750
Sep 22 11:36:32 DeviceName diagnosticd[5999] <Error>: error evaluating process info - pid: 6750, punique: 6750
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Notice>: Formulating crash report for process myAppName[6750]
Sep 22 11:36:32 DeviceName SpringBoard[2836] <Warning>: BSXPCMessage received error for message: Connection invalid
Sep 22 11:36:32 DeviceName wifid[68] <Notice>: WiFi:[433071392.290519]: BG Application: Not Present, BG Daemon: Present. Daemons: lockdownd networkd assistantd 
Sep 22 11:36:32 DeviceName com.apple.xpc.launchd[1] (UIKitApplication:com.company.myAppName[0x3ff0][6750]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Not saving crash log because we have reached the limit for logs to store on disk.  Sync or otherwise clear logs from /var/mobile/Library/Logs/CrashReporter to save new logs.
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Could not save crash report to disk!
Sep 22 11:36:32 DeviceName SpringBoard[2836] <Warning>: Application 'UIKitApplication:com.company.myAppName[0x3ff0]' crashed.
Sep 22 11:36:32 DeviceName assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x145437b0; com.company.myAppName; pid: 6750> to 2, priority: No such process
Sep 22 11:36:32 DeviceName assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x145437b0; com.company.myAppName; pid: 6750> to 4096, priority: No such process
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Incident Identifier: DF8D30C9-4F46-43CB-B192-323E819180A6
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: CrashReporter Key:   a93a18a1167cbedc4b3623154bd083fdd7770808
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Hardware Model:      iPhone5,2
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Process:             myAppName [6750]
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Path:                /private/var/mobile/Containers/Bundle/Application/DE60F941-317E-49C2-95EA-0F152A117C16/myAppName.app/myAppName
Sep 22 11:36:32 DeviceName UserEventAgent[17] <Warning>: id=com.company.myAppName pid=6750, state=0
Sep 22 11:36:32 DeviceName backboardd[56] <Warning>: Unable to bootstrap_look_up port with name com.company.myAppName.gsEvents: unknown error code (1102)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Identifier:          myAppName
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Version:             ???
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Code Type:           ARM (Native)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Parent Process:      launchd [1]
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Date/Time:           2014-09-22 11:36:32.054 +0200
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Launch Time:         2014-09-22 11:25:29.726 +0200
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: OS Version:          iOS 8.0 (12A365)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Report Version:      105
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Exception Codes: 0x0000000000000001, 0x000000000000defe
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Triggered by Thread:  0
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Last Exception Backtrace:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: (0x26db3e3a 0x34461c86 0x26db3d10 0x27a845aa 0x2b8bf8c8 0x349c8b64 0x2b8bf832 0x2a7c7ba8 0x349c18c6 0x349c18b2 0x349c50ba 0x26d79be4 0x26d782e4 0x26cc661c 0x26cc642e 0x2e0740a4 0x2a2b0804 0xcee48 0x349e1aaa)
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 0 Crashed:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libdispatch.dylib                 0x349c6d48 0x349c0000 + 27976
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libdispatch.dylib                 0x349c4be4 0x349c0000 + 19428
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   FrontBoardServices                0x2d4e7830 0x2d4df000 + 34864
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3   FrontBoardServices                0x2d4f40e6 0x2d4df000 + 86246
Sep 22 11:36:32 DeviceName SpringBoard[2836] <Warning>: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4   CoreFoundation                    0x26d7a5b2 0x26cae000 + 837042
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5   CoreFoundation                    0x26d79874 0x26cae000 + 833652
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6   CoreFoundation                    0x26d77ff6 0x26cae000 + 827382
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7   CoreFoundation                    0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8   CoreFoundation                    0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9   myAppName                         0x00177f72 0x4f000 + 1216370
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10  CoreFoundation                    0x26db416c 0x26cae000 + 1073516
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 11  libobjc.A.dylib                   0x34461f10 0x3445b000 + 28432
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 12  libc++abi.dylib                   0x33d9ade0 0x33d83000 + 97760
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 13  libc++abi.dylib                   0x33d9a5a4 0x33d83000 + 95652
Sep 22 11:36:32 DeviceName locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 14  libobjc.A.dylib                   0x34461d5a 0x3445b000 + 27994
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 15  CoreFoundation                    0x26db3d10 0x26cae000 + 1072400
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 16  Foundation                        0x27a845aa 0x279f2000 + 599466
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 17  BaseBoard                         0x2b8bf8c8 0x2b89b000 + 149704
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 18  libdispatch.dylib                 0x349c8b64 0x349c0000 + 35684
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 19  BaseBoard                         0x2b8bf832 0x2b89b000 + 149554
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 20  UIKit                             0x2a7c7ba8 0x2a242000 + 5790632
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 21  libdispatch.dylib                 0x349c18c8 0x349c0000 + 6344
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 22  libdispatch.dylib                 0x349c18b4 0x349c0000 + 6324
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 23  libdispatch.dylib                 0x349c50ba 0x349c0000 + 20666
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 24  CoreFoundation                    0x26d79be4 0x26cae000 + 834532
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 25  CoreFoundation                    0x26d782e4 0x26cae000 + 828132
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 26  CoreFoundation                    0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 27  CoreFoundation                    0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 28  GraphicsServices                  0x2e0740a4 0x2e06b000 + 37028
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 29  UIKit                             0x2a2b0804 0x2a242000 + 452612
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 30  myAppName                         0x000cee48 0x4f000 + 523848
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 31  libdyld.dylib                     0x349e1aac 0x349e0000 + 6828
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 1:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34a942a0 0x34a93000 + 4768
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libdispatch.dylib                 0x349cd9fc 0x349c0000 + 55804
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libdispatch.dylib                 0x349c331e 0x349c0000 + 13086
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 2 name:  GAIThread  Dispatch queue: NSPersistentStoreCoordinator 0x15582b60
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 2:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa9388 0x34a93000 + 91016
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsqlite3.dylib                  0x347e4164 0x3474b000 + 627044
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsqlite3.dylib                  0x3479334a 0x3474b000 + 295754
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3   libsqlite3.dylib                  0x347d2544 0x3474b000 + 554308
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4   libsqlite3.dylib                  0x347d1e54 0x3474b000 + 552532
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5   libsqlite3.dylib                  0x34792f8e 0x3474b000 + 294798
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6   libsqlite3.dylib                  0x34787c72 0x3474b000 + 248946
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7   libsqlite3.dylib                  0x347657dc 0x3474b000 + 108508
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8   libsqlite3.dylib                  0x34783f10 0x3474b000 + 233232
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9   libsqlite3.dylib                  0x34778ed6 0x3474b000 + 188118
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10  CoreData                          0x26ab7ab8 0x26aa2000 + 88760
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 11  CoreData                          0x26af0d92 0x26aa2000 + 322962
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 12  CoreData                          0x26b87110 0x26aa2000 + 938256
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 13  CoreData                          0x26b6c3ac 0x26aa2000 + 828332
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 14  CoreData                          0x26b717c8 0x26aa2000 + 849864
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 15  libdispatch.dylib                 0x349c18b4 0x349c0000 + 6324
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 16  libdispatch.dylib                 0x349c8b64 0x349c0000 + 35684
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 17  CoreData                          0x26b65302 0x26aa2000 + 799490
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 18  CoreData                          0x26b6bf9a 0x26aa2000 + 827290
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 19  CoreData                          0x26b3d5be 0x26aa2000 + 636350
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 20  myAppName                         0x0017312c 0x4f000 + 1196332
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 21  myAppName                         0x00171c46 0x4f000 + 1190982
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 22  myAppName                         0x00172fe2 0x4f000 + 1196002
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 23  myAppName                         0x0017d77e 0x4f000 + 1238910
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 24  myAppName                         0x0017e9ee 0x4f000 + 1243630
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 25  myAppName                         0x0017e7ec 0x4f000 + 1243116
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 26  Foundation                        0x27ac359a 0x279f2000 + 857498
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 27  CoreFoundation                    0x26d7a58c 0x26cae000 + 837004
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 28  CoreFoundation                    0x26d7999a 0x26cae000 + 833946
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 29  CoreFoundation                    0x26d78000 0x26cae000 + 827392
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 30  CoreFoundation                    0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 31  CoreFoundation                    0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 32  Foundation                        0x279fe428 0x279f2000 + 50216
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 33  Foundation                        0x27a4c8e8 0x279f2000 + 370920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 34  myAppName                         0x0016f678 0x4f000 + 1181304
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 35  Foundation                        0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 36  libsystem_pthread.dylib           0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 37  libsystem_pthread.dylib           0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 38  libsystem_pthread.dylib           0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 3:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa7b38 0x34a93000 + 84792
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b243f4 0x34b22000 + 9204
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b252d8 0x34b22000 + 13016
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3   Foundation                        0x27a48f62 0x279f2000 + 356194
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4   myAppName                         0x0011f036 0x4f000 + 852022
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5   Foundation                        0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6   libsystem_pthread.dylib           0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7   libsystem_pthread.dylib           0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8   libsystem_pthread.dylib           0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 4:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 5 name:  PF_AFNetworking
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 5:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34a944f0 0x34a93000 + 5360
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_kernel.dylib            0x34a942e4 0x34a93000 + 4836
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   CoreFoundation                    0x26d79b4e 0x26cae000 + 834382
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3   CoreFoundation                    0x26d780f4 0x26cae000 + 827636
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4   CoreFoundation                    0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5   CoreFoundation                    0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6   Foundation                        0x279fe428 0x279f2000 + 50216
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7   Foundation                        0x27a4c8e8 0x279f2000 + 370920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8   myAppName                         0x001317ee 0x4f000 + 927726
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9   Foundation                        0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10  libsystem_pthread.dylib           0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 11  libsystem_pthread.dylib           0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 12  libsystem_pthread.dylib           0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 6 name:  com.apple.NSURLConnectionLoader
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 6:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34a944f0 0x34a93000 + 5360
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_kernel.dylib            0x34a942e4 0x34a93000 + 4836
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   CoreFoundation                    0x26d79b4e 0x26cae000 + 834382
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3   CoreFoundation                    0x26d780f4 0x26cae000 + 827636
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4   CoreFoundation                    0x26cc661c 0x26cae000 + 99868
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 5   CoreFoundation                    0x26cc642e 0x26cae000 + 99374
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 6   CFNetwork                         0x2687f3da 0x26803000 + 508890
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 7   Foundation                        0x27ac3386 0x279f2000 + 856966
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 8   libsystem_pthread.dylib           0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 9   libsystem_pthread.dylib           0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 10  libsystem_pthread.dylib           0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 7 name:  com.apple.CFSocket.private
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 7:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa808c 0x34a93000 + 86156
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   CoreFoundation                    0x26d7e31a 0x26cae000 + 852762
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b24e90 0x34b22000 + 11920
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 3   libsystem_pthread.dylib           0x34b24e02 0x34b22000 + 11778
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 4   libsystem_pthread.dylib           0x34b22b8c 0x34b22000 + 2956
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 8:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 9:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 10:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 11:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 12:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0   libsystem_kernel.dylib            0x34aa89cc 0x34a93000 + 88524
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 1   libsystem_pthread.dylib           0x34b22ea8 0x34b22000 + 3752
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 2   libsystem_pthread.dylib           0x34b22b80 0x34b22000 + 2944
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Thread 0 crashed with ARM Thread State (32-bit):
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>:     r0: 0x0056c500    r1: 0x00000000      r2: 0x156a7a00      r3: 0x00000fff
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>:     r4: 0x3713cd40    r5: 0x349de338      r6: 0x352bfca8      r7: 0x005622e8
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>:     r8: 0x155c4610    r9: 0x156a8000     r10: 0x155c4610     r11: 0x156cb5f0
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>:     ip: 0x37154124    sp: 0x005622d4      lr: 0x349c6d49      pc: 0x349c6d48
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>:   cpsr: 0x60000030
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: Binary Images:
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x4f000 - 0x2eefff myAppName armv7  <8d48834e6e563ba08bd970b675b2c2b1> /var/mobile/Containers/Bundle/Application/DE60F941-317E-49C2-95EA-0F152A117C16/myAppName.app/myAppName
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x1fed6000 - 0x1fef9fff dyld armv7s  <fd3fef9c43c9382e8e46d5d59fb52f86> /usr/lib/dyld
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x25852000 - 0x259befff AVFoundation armv7s  <291c7a621b65396491697e7a7f728b16> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
Sep 22 11:36:32 DeviceName ReportCrash[6766] <Error>: 0x259bf000 - 0x25a1dfff libAVFAudio.dylib armv7s  <1b452a7a75513cf9aa82e59feb7eef33> /System/Library/Frameworks/AVFoundation.framework/libAVFAudio.dylib
A lot of lines like the previous one

看看这个错误消息。 iOS SDK 中的断言检查似乎失败。

*** Assertion failure in -[UIFetchContentInBackgroundAction sendResponse:], /SourceCache/BaseBoard/BaseBoard-97/BaseBoard/BSAction.m:221
BUG in client of libdispatch: Assertion failed: Block was run on an unexpected queue
Expected queue: 0x0x3713cd40[com.apple.main-thread]

该断言确实检查指定的块是否将在正确的调度队列上运行。从断言消息和堆栈跟踪来看,-[UIFetchContentInBackgroundAction sendResponse:] uses 调度断言队列 http://opensource.apple.com/source/libdispatch/libdispatch-339.92.1/src/queue.c检查应用程序代码是否正确使用块的主队列。

所以你最好检查你的后台获取代码应该使用主队列,但你的代码正在使用全局队列、串行队列或并发队列。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何调试 iOS 应用程序在启动时崩溃,仅在程序集文件中设置断点 的相关文章

  • 使用 MIPS 从 Big Endian 到 Little Endian 无需逻辑运算?

    我正在使用 MIPS QtSpim 将 32 位字从 Big Endian 转换为 Little Endian 我下面显示的内容已检查且正确 不过我想知道还有什么其他方法可以让我进行转换 我虽然只使用了旋转和移位 但如果没有逻辑运算 我就无
  • 我可以更改导航栏项目的位置吗?

    Here is the snapshot 代码在这里 UIButton leftButton UIButton buttonWithType UIButtonTypeCustom leftButton frame CGRectMake 0
  • dequeueReusableCellWithIdentifier: 如何工作?

    我想要一些精确的信息dequeueReusableCellWithIdentifier kCellIdentifier 如果我理解得很好 下面的 NSLOG 应该只打印一次 但事实并非如此 那么 dequeueReusableCell 的意
  • 如何调试.NET Windows Service OnStart方法?

    我用 NET 编写的代码仅在作为 Windows 服务安装时才会失败 该故障甚至不允许服务启动 我不知道如何进入 OnStart 方法 如何 调试 Windows 服务应用程序 http msdn microsoft com en us l
  • 如何在 iOS 中通过 wifi 传输大文件

    我下载了WiTap http developer apple com library ios samplecode WiTap Introduction Intro html代码来自苹果网站 它用于通过本地 WiFi 网络传输数据 我正在从
  • 允许在 Safari 上聊天应用程序使用 audio.play()

    由于苹果禁用了自动播放音频的功能HTMLMedia Element play https developer mozilla org en US docs Web API HTMLMediaElement play在没有用户交互的 java
  • 阴影空间示例

    EDIT 我接受了下面的答案 并添加了我自己的代码的最终修订版 希望它向人们展示影子空间分配的实际示例 而不是更多的文字 编辑 2 我还设法在 YouTube 视频 所有内容 的注释中找到了一个调用约定 PDF 的链接 其中有一些关于 Li
  • iOS 13 UIActivityViewController 在图像保存后自动呈现以前的 VC

    我正在尝试实现 将图像保存到库 功能 然后返回到当前视图控制器 但在新的 iOS 13 上 它会返回到呈现当前视图控制器的视图控制器 PHPhotoLibrary requestAuthorization status PHAuthoriz
  • iOS 以编程方式撤销位置服务权限

    有没有一个功能CLLocationManager or UIApplication撤销位置权限类似功能unregisterForRemoteNotifications撤销推送通知权限 The stopUpdatingLocationCLLo
  • Android 和 IOS 是否可以在后台发送短信?

    我想制作一个应用程序 其主要功能取决于发送短信 在我开发 android native 之前 但现在我使用 React Native 来为 IOS 和 Android 制作它 在 Android 中 如果获得用户许可 可以在后台发送短信 但
  • 在 UILongPressGestureRecognizer 上,如何检测哪个对象生成了事件?

    我有几个 UIButton 的视图 我已成功使用 UILongPressGestureRecognizer 实现 并使用以下内容作为选择器 void longPress UILongPressGestureRecognizer gestur
  • 为什么我的 Cordova/PhoneGap iOS 应用程序在设备旋转时不旋转?

    我正在尝试做一个仅横向应用程序 https stackoverflow com questions 10996676 phonegap page has wrong rotation shows as portrait in landsca
  • xib(Xcode8) 上 UIView/UIImageView 的大小变为 (1000, 1000)

    我在 xib 上使用自动布局来创建我的 UI 当我完成我的用户界面时 它在模拟器上运行良好 但是当我下次打开 Xcode8 时 xib 显示很奇怪 一些 UIView 和 UIImageView 变大 大小变为 1000 1000 即便如此
  • 可以禁用“应用程序错误”对话框吗?

    我使用 Hudson 作为持续集成服务器来测试 C C 代码 不幸的是 我在某个地方有一个错误导致内存损坏 因此在某些 Windows 计算机上我有时会收到一个 应用程序错误 对话框 解释一条指令引用了无法读取的内存 弹出此对话框并基本上挂
  • iOS中拖动时如何修改UIVisualEffectView的模糊度?

    目前 我正在使用 UIVisualEffectView 对图像应用模糊 我有一个 UIScrollView 当我在 scrollViewDidScroll 方法中向下拉滚动视图时 我正在更改 UIVisualEffectView 的 alp
  • 在实现文件中声明接口(Objective-C)

    在上一个版本的 xCode 4 3 中 我看到了预定义模板 例如我们的 Master Detail 模板 其中接口声明是在 m 文件中进行的 例如 在文件 MyFile h 中有 interface MyFile property nona
  • GIDSignIn 在提示前指定范围

    我在 iOS 上升级到 GoogleSignIn 6 0 但找不到在登录时指定登录范围的方法 我只能看到一个名为 addScopes 的 API 我可以在基本登录后指定范围 但这会导致两个单独的登录提示 这很奇怪 之前 我们可以简单地指定登
  • 从 iOS 中的 App Delegate 调用当前视图控制器中的方法

    我有两个视图控制器 BuildingsViewController 和 RoomsViewController 它们都使用应用程序委托中名为上传的函数 上传函数基本上执行一个 HTTP 请求 如果成功或不成功 都会触发 uialertvie
  • Swift 中的 AURenderCallback

    我正在创建一个使用音频单元的应用程序 虽然 Objective C 中有很多代码示例 包括 Apple 自己的 aurioTouch 等 但我正在尝试用 Swift 编写整个代码 我已经能够设置我的 AUGraph 并通过它运行一些音频 但
  • 如何区分iphone4和iphone 3

    我正在尝试使用 cocos2d 引擎为 iphone 构建游戏 我想知道如何区分用户使用的是 iphone 4 还是 iphone 3 因为我想为 iphone4 加载高分辨率图形 为 iphone 3 加载低分辨率图形 我知道我是否在以下

随机推荐

  • MSBuild 项目部署到本地文件夹并转换配置

    我在尝试找到正确的方法来使用 MSBuild 构建 Web 项目并输出仅包含可部署文件 即没有 cs csproj Debug config 等 但发布到本地文件夹的项目时遇到问题然后我可以通过 FTP RoboCopy 或其他方式 传输到
  • Haskell 错误:“非详尽模式”

    所以我有这个功能 当我尝试像这样使用它时 合并排序列表 1 1 1 1 它给了我一个错误 1 1 例外 SortFunctions hs 86 1 91 89 非详尽 函数 mergeSortedLists 中的模式 85 mergeSor
  • 如何向正在运行的 Linux 进程发送 Ctrl-Break?

    我正在调试在 Sun 的 JDK 1 4 2 18 上运行的应用程序中的内存泄漏 该版本似乎支持命令行参数 XX HeapDumpOnCtrlBreak 这可能会导致 JVM 在遇到控制中断时转储堆 如何将其发送到 Linux 机器上的后台
  • EnumChildWindows 还是 FindWindowEx?

    我可以选择使用 API EnumChildWindows 或 FindWindowEx 中的任何一个 有什么建议哪个 api 更注重性能 FindWindowEx 内部是否使用 EnumChildWindows 来获取特定窗口的句柄 这实际
  • 联合元素对齐

    如果我有一个联合 C 标准保证联合本身将与最大元素的大小对齐 union U long l int i short s char c 2 u 但对于工会内部各个工会成员的协调 它是怎么说的呢 下面的表达式能保证为真吗 u l u i u i
  • C++ STL 下一个排列与组合

    我知道我可以使用std next permutation在包含元素的某些容器上 1 2 3 这将生成该序列的 6 种排列 我想做的是给定一些设置 1 2 3 4 5 6 生成大小为 3 的所有可能的排列 因此对于这个例子 4 3 2 将是由
  • 如何在主活动中注册接收者? [复制]

    这个问题在这里已经有答案了 我有一个SmsReceiver我想在主活动中注册的类 我到底应该做什么 我是安卓新手 你可以做两件事 创建和定义BroadcastReceiver in the Manifest 创建并注册BroadcastRe
  • 获取 $_SERVER['AUTH_USER'] 的空白值

    我有一个在 Windows 2008 Server R2 上运行的 PHP 应用程序 它使用 PHP 的 LDAP 库根据 Active Directory 对用户进行身份验证 As per 这个答案 https stackoverflow
  • OCaml:如何运行包含库的脚本

    我正在按照 Real World OCaml 一书来学习 OCaml 许多程序都需要使用 Jane Street Core 库 当我在顶层使用这个核心库中的函数时 它工作得很好 在那里 我只需使用以下命令来打开 Core 库 use top
  • YouTube iframe 不响应 postMessage 命令

    我正在尝试使用来自父级的 postMessage 命令来控制 YouTube iframe 但它似乎不起作用 由于多种原因 我没有使用 YouTube API 只是使用带有 YouTube 嵌入视频的普通 iframe 我尝试发送命令的方式
  • monodevelop 2.1+ 支持 Visual Studio 2010 项目文件吗?

    monodevelop 2 1 是否支持 Visual Studio 2010 项目文件 但是 如果不支持 有人知道计划何时提供支持吗 我问的原因是我有一个在 VS2008 和 Monodevelop 中都使用的解决方案 当我在 2010
  • 为什么 reposync 没有签出我在清单文件中指定的分支?

    假设我有以下清单文件repo https source android com setup develop repo tool MCVE https stackoverflow com help minimal reproducible e
  • 如何通过父进程杀死子进程?

    我使用创建一个子进程fork 如果子进程无法在30秒内完成执行 父进程如何杀死子进程 我想让子进程最多执行 30 秒 如果超过30秒 父进程就会杀死它 你有想法这样做吗 向其发送 SIGTERM 或 SIGKILL http en wiki
  • Dropzone.js 和每个文件的完整路径

    我正在尝试使用 Dropzone js 重新创建删除的文件 文件夹的文件夹结构 有没有办法访问每个文件的完整路径 以便可以在 php 端重新创建目录结构 这是一种简单的方法 您可以额外发送某些文件夹中所有文件的完整路径 dropzone o
  • Xgboost:bst.best_score、bst.best_iteration 和 bst.best_ntree_limit 有什么区别?

    当我使用 xgboost 训练我的数据时2 cates classification problem 我想使用提前停止来获得最佳模型 但我对在预测中使用哪一个模型感到困惑 因为提前停止将返回 3 个不同的选择 例如 我应该使用 preds
  • 读写文本文件的最佳方法

    我正在使用最新版本的 Lazarus IDE 并且我有一个Memo1在我的 TForm1 上 我必须加载一个文本文件Memo1然后编辑备忘录的每一行 我使用Memo1 Lines Strings i 最后 我必须将编辑后的备忘录保存在特定路
  • 对浮点数求反总是安全的吗

    考虑 double f foo double g f where foo 可以返回分配给的任何内容f is double g f 在 C 和 C 中安全吗 对于 IEEE 754 类型 显然是这样 但 C 和 C 并不限制浮点实现 与 Ja
  • 数组向量无法编译[重复]

    这个问题在这里已经有答案了 这个简单的程序 include
  • TreeSet 给出不正确的输出 - Java8

    在处理树集时 我发现了非常奇怪的行为 根据我的理解 以下程序应该打印两行相同的行 public class TestSet static void test String args Set
  • 如何调试 iOS 应用程序在启动时崩溃,仅在程序集文件中设置断点

    我遇到了当前正在开发的应用程序的问题 问题是应用程序在启动时在后台运行一段时间后崩溃 并且仅在这种情况下 在应用程序被杀死时启动应用程序不会导致调试器或手机崩溃 无论是否进行调试 在后台启动应用程序大约 5 10 分钟都不会导致崩溃 在后台