我的应用被Exception EXC_BREAKPOINT(SIGTRAP)拒绝

时间:2016-11-02 12:33:11

标签: ios swift app-store

我在iPhone和iPad设备上测试了我的应用程序,它工作正常,我也在iOS 10.1.1和IPV6网络上测试过它也工作正常但是在将我的应用程序上传到应用程序商店之后,它被拒绝了,因为它登录时,如果设备处于脱机状态或Wifi,则会崩溃。他们给了我一份崩溃报告,在我把它复合之后,我得到了这个信息:

Date/Time:           2016-11-01 10:07:03.2150 -0700
Launch Time:         2016-11-01 10:05:21.7124 -0700
OS Version:          iPhone OS 10.1 (14B72)
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000f18c0
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   MyApp                       -[FIRMessagingSecureSocket closeStream:] (in MyApp) + 56
1   MyApp                       -[FIRMessagingRmq2PersistentStore openDatabase:] (in MyApp) + 228
2   MyApp                       -[FIRMessagingReceiver didSendDataMessageWithID:] (in MyApp) + 128
3   Foundation                      0x00000001835e08f8 
4   CoreFoundation                  0x0000000182aa48f4 
5   CoreFoundation                  0x0000000182aa4608 
6   CoreFoundation                  0x0000000182aa3ec4 
7   CoreFoundation                  0x0000000182aa1ac0 
8   CoreFoundation                  0x00000001829d0048 
9   GraphicsServices                0x0000000184456198 
10  UIKit                           0x00000001889b42fc 
11  UIKit                           0x00000001889af034 
12  MyApp                       -[FIRMessagingClient tryToConnect] (in MyApp) + 212 
13  libdyld.dylib                   0x00000001819b45b8 

更新:   我发布了新版本put也得到了这个崩溃日志

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000a1658
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   MyApp                       [FIRAMeasurement setUserAttributeOnWorkerQueue:]      (in MyApp) + 580
1   MyApp                       [FIRAMeasurement uploadData] (MyApp) + 180 0x100054000 + 303808
2   MyApp                       [FIRAMeasurement reportOSUpdateOnWorkerQueue] (in PetCasa Vet) + 124
3   Foundation                      0x0000000187acc8f8 0x1879c1000 + 1095928
4   CoreFoundation                  0x0000000186f908f4 0x186eb3000 + 907508
5   CoreFoundation                  0x0000000186f90608 0x186eb3000 + 906760
6   CoreFoundation                  0x0000000186f8fec4 0x186eb3000 + 904900
7   CoreFoundation                  0x0000000186f8dac0 0x186eb3000 + 895680
8   CoreFoundation                  0x0000000186ebc048 0x186eb3000 + 36936
9   GraphicsServices                0x0000000188942198 0x188936000 + 49560
10  UIKit                           0x000000018cea02fc 0x18ce25000 + 504572
11  UIKit                           0x000000018ce9b034 0x18ce25000 + 483380
12  MyApp                       0x00000001000907d8 (in MyApp) + 448
13  libdyld.dylib                   0x0000000185ea05b8 0x185e9c000 + 17848

并且此日志崩溃:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000e5658
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   MyApp                   0x00000001000e5658 (in MyApp) + 1060
1   MyApp                       [FIRMessagingConnection  loginRequestWithToken:authID:] (in MyApp) + 300
2   MyApp                       [FIRMessagingConnection initWithAuthID:token:host:port:runLoop:rmq2Manager:gcmManager:] (in MyApp) + 32
3   Foundation                      0x0000000187acc8f8 0x1879c1000 + 1095928
4   CoreFoundation                  0x0000000186f908f4 0x186eb3000 + 907508
5   CoreFoundation                  0x0000000186f90608 0x186eb3000 + 906760
6   CoreFoundation                  0x0000000186f8fec4 0x186eb3000 + 904900
7   CoreFoundation                  0x0000000186f8dac0 0x186eb3000 + 895680
8   CoreFoundation                  0x0000000186ebc048 0x186eb3000 + 36936
9   GraphicsServices                0x0000000188942198 0x188936000 + 49560
10  UIKit                           0x000000018cea02fc 0x18ce25000 + 504572
11  UIKit                           0x000000018ce9b034 0x18ce25000 + 483380
12  MyApp                       [FIRInstanceIDRegistrationClient parseToken:authToken:withRequestID:handler:] (in MyApp) + 564 
13  libdyld.dylib                   0x0000000185ea05b8 0x185e9c000 + 17848

2 个答案:

答案 0 :(得分:8)

来自Apple文档

  

跟踪陷阱[EXC_BREAKPOINT // SIGTRAP]

 ......
 ......
Swift code will terminate with this exception type if an unexpected
condition is encountered at runtime such as:
 1- a non-optional type with a nil 
 2- value a failed forced type conversion

在我的应用程序中我使用位置并将其发送到后端,并且它工作正常,但是当第一次打开应用程序时系统显示警告说我的应用程序想要使用您的位置允许或不允许,如果用户不允许这样的位置方法不起作用,位置将是零,不幸的是我没有检查位置是否为零,所以打开它时应用程序崩溃,这是我的错误,谢谢你。

答案 1 :(得分:0)

请向Apple审核小组发送相关信息并向他们询问 “我们使用iOS 10.x在iPhone 6,6s,7和7+上测试了应用程序,并且应用程序在IPV6网络中运行良好,我们按照以下流程进行IPV6网络:http://www.brianjcoleman.com/tutorial-how-to-test-your-app-for-ipv6-compatibility/”并向他们请求您的活动将被举行在接下来的一周,请尽快发布应用程序以便存储应用程序的流程,以便发现问题或崩溃。

它有效,我用4个应用做了同样的事情,他们批准了。