仅限生产版本的EXC_BREAKPOINT(SIGTRAP) [英] EXC_BREAKPOINT (SIGTRAP) on Production Version Only

查看:95
本文介绍了仅限生产版本的EXC_BREAKPOINT(SIGTRAP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iOS应用程序在测试中运行良好,但在从App Store下载的发行版启动时崩溃.我尝试使用Xcode中的发行版本配置重新测试,并且不会崩溃,而只是商店版本.我很确定它与应用程序内购买产品的加载有关,但是由于无法在测试环境中进行复制而无法读取日志,因此无法缩小加载范围.设备日志显示如下:

My iOS app works fine in testing but crashes on startup with the release version downloaded from the App Store. I've tried retesting with the release build configuration in Xcode and it doesn't crash, just the store version. I'm pretty sure it has something to do with in-app purchase products loading, but can't narrow it down due to not being able to replicate it in a test environment and am having trouble reading the log. The device log is showing this:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread:  5

Filtered syslog:
None found

Global Trace Buffer (reverse chronological seconds):
1.456537     CFNetwork                  0x0000000025b13755 TCP Conn 0x16696ed0 SSL Handshake DONE
1.507619     CFNetwork                  0x0000000025b13755 TCP Conn 0x16697670 SSL Handshake DONE
1.618210     CFNetwork                  0x0000000025b1368f TCP Conn 0x16696ed0 starting SSL negotiation
1.619545     CFNetwork                  0x0000000025b1368f TCP Conn 0x16697670 starting SSL negotiation
1.619545     CFNetwork                  0x0000000025b9387d TCP Conn 0x16696ed0 complete. fd: 12, err: 0
1.620001     CFNetwork                  0x0000000025b9387d TCP Conn 0x16697670 complete. fd: 10, err: 0
1.621124     CFNetwork                  0x0000000025b94977 TCP Conn 0x16696ed0 event 1. err: 0
1.622355     CFNetwork                  0x0000000025b94977 TCP Conn 0x16697670 event 1. err: 0
1.699555     CFNetwork                  0x0000000025b949f5 TCP Conn 0x16697670 started
1.699555     CFNetwork                  0x0000000025b949f5 TCP Conn 0x16696ed0 started
1.757512     CFNetwork                  0x0000000025b13755 TCP Conn 0x16684640 SSL Handshake DONE
2.136019     CFNetwork                  0x0000000025b1368f TCP Conn 0x16684640 starting SSL negotiation
2.136958     CFNetwork                  0x0000000025b9387d TCP Conn 0x16684640 complete. fd: 5, err: 0
2.139006     CFNetwork                  0x0000000025b94977 TCP Conn 0x16684640 event 1. err: 0
2.400334     CFNetwork                  0x0000000025b949f5 TCP Conn 0x16684640 started
2.412851     CFNetwork                  0x0000000025bda15f Creating default cookie storage with default identifier
2.412851     CFNetwork                  0x0000000025bda13b Faulting in CFHTTPCookieStorage singleton
2.412851     CFNetwork                  0x0000000025c1c7bf Faulting in NSHTTPCookieStorage singleton



Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib          0x2528a8d0 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x2528a6d4 mach_msg + 40
2   CoreFoundation                  0x255d5ac4 __CFRunLoopServiceMachPort + 136
3   CoreFoundation                  0x255d3e4c __CFRunLoopRun + 1036
4   CoreFoundation                  0x25523228 CFRunLoopRunSpecific + 520
5   CoreFoundation                  0x25523014 CFRunLoopRunInMode + 108
6   GraphicsServices                0x26b13ac8 GSEventRunModal + 160
7   UIKit                           0x29bf7188 UIApplicationMain + 144
8   LeaseLocator_2016               0x000bfe88 0x53000 + 446088
9   libdyld.dylib                   0x251cb872 start + 2

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib          0x252a02f8 kevent_qos + 24
1   libdispatch.dylib               0x25195d60 _dispatch_mgr_invoke + 256
2   libdispatch.dylib               0x25195abe _dispatch_mgr_thread$VARIANT$mp + 38

Thread 2:
0   libsystem_kernel.dylib          0x2529f864 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x25345b34 _pthread_wqthread + 1036
2   libsystem_pthread.dylib         0x25345718 start_wqthread + 8

Thread 3:
0   libsystem_kernel.dylib          0x2529f864 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x25345b34 _pthread_wqthread + 1036
2   libsystem_pthread.dylib         0x25345718 start_wqthread + 8

Thread 4:
0   libsystem_kernel.dylib          0x2529f864 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x25345b34 _pthread_wqthread + 1036
2   libsystem_pthread.dylib         0x25345718 start_wqthread + 8

Thread 5 name:  Dispatch queue: NSOperationQueue 0x1666ba80 :: NSOperation 0x165dafe0 (QOS: LEGACY)
Thread 5 Crashed:
0   LeaseLocator_2016               0x00079894 0x53000 + 157844
1   LeaseLocator_2016               0x00073d90 0x53000 + 134544
2   LeaseLocator_2016               0x000788d0 0x53000 + 153808
3   CFNetwork                       0x25b1b280 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 16
4   CFNetwork                       0x25b2aa6a __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 278
5   Foundation                      0x25e25678 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 8
6   Foundation                      0x25d865f2 -[NSBlockOperation main] + 146
7   Foundation                      0x25d78bc8 -[__NSOperationInternal _start:] + 768
8   Foundation                      0x25e27930 __NSOQSchedule_f + 192
9   libdispatch.dylib               0x2518e422 _dispatch_queue_drain$VARIANT$mp + 1758
10  libdispatch.dylib               0x2518da60 _dispatch_queue_invoke$VARIANT$mp + 284
11  libdispatch.dylib               0x2519015c _dispatch_root_queue_drain + 396
12  libdispatch.dylib               0x2518ffcc _dispatch_worker_thread3 + 96
13  libsystem_pthread.dylib         0x25345b28 _pthread_wqthread + 1024
14  libsystem_pthread.dylib         0x25345718 start_wqthread + 8

Thread 6:
0   libsystem_kernel.dylib          0x2529f864 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x25345b34 _pthread_wqthread + 1036
2   libsystem_pthread.dylib         0x25345718 start_wqthread + 8

Thread 7:
0   libsystem_pthread.dylib         0x25345710 start_wqthread + 0

Thread 8 name:  com.apple.NSURLConnectionLoader
Thread 8:
0   libsystem_kernel.dylib          0x2528a8d0 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x2528a6d4 mach_msg + 40
2   CoreFoundation                  0x255d5ac4 __CFRunLoopServiceMachPort + 136
3   CoreFoundation                  0x255d3e4c __CFRunLoopRun + 1036
4   CoreFoundation                  0x25523228 CFRunLoopRunSpecific + 520
5   CoreFoundation                  0x25523014 CFRunLoopRunInMode + 108
6   CFNetwork                       0x25b749f6 +[NSURLConnection(Loader) _resourceLoadLoop:] + 486
7   Foundation                      0x25e3d4a4 __NSThread__start__ + 1148
8   libsystem_pthread.dylib         0x2534785a _pthread_body + 138
9   libsystem_pthread.dylib         0x253477ce _pthread_start + 110
10  libsystem_pthread.dylib         0x25345724 thread_start + 8

Thread 9 name:  com.apple.CFSocket.private
Thread 9:
0   libsystem_kernel.dylib          0x2529eeec __select + 20
1   CoreFoundation                  0x255daf12 __CFSocketManager + 566
2   libsystem_pthread.dylib         0x2534785a _pthread_body + 138
3   libsystem_pthread.dylib         0x253477ce _pthread_start + 110
4   libsystem_pthread.dylib         0x25345724 thread_start + 8

Thread 5 crashed with ARM Thread State (32-bit):
    r0: 0x00000000    r1: 0x402190b0      r2: 0x00000000      r3: 0x00000000
    r4: 0x165d5790    r5: 0x00421c86      r6: 0x00000000      r7: 0x40218b48
    r8: 0x16696b50    r9: 0x16696b54     r10: 0x00000001     r11: 0x00000000
    ip: 0x000d3274    sp: 0x40218a80      lr: 0x00078c08      pc: 0x00079894
  cpsr: 0x60000010

我是否可以通过某种方式从商店测试生产版本,或者此日志是否提供了足够的信息以查明我的错误所在?

Is there some way I can either test the production build from the store or does this log provide enough information to pinpoint where my error is?

推荐答案

检查您是否在应用中调用通讯录,日历,提醒,照片,蓝牙共享,麦克风,相机,位置,健康状况,HomeKit,媒体库,Motion, CallKit,语音识别,SiriKit,电视提供商等.

Check if you call in the app Contacts, Calendar, Reminders, Photos, Bluetooth Sharing, Microphone, Camera, Location, Health, HomeKit, Media Library, Motion, CallKit, Speech Recognition, SiriKit, TV Provider, etc.

从iOS 10开始,如果您尝试在没有使用说明的情况下访问对隐私敏感的数据,则您的应用程序将崩溃.

Since iOS 10 your app will crash if you try to access privacy-sensitive data without a usage description.

为避免崩溃,您需要将密钥添加到"Info.plist",例如:

To avoid the crash you need to add the key to ‘Info.plist’, for example:

Privacy - Camera Usage Description
Privacy - Photo Library Usage Description

在我的情况下,我添加了用于摄像头但没有用于麦克风的键,并且存在相同的问题.

In my case I added key for camera usage but not for microphone and had the same problem.

这篇关于仅限生产版本的EXC_BREAKPOINT(SIGTRAP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆