iOS - 开发构建工作但分发构建崩溃

时间:2014-11-12 11:50:01

标签: ios xcode configuration build-process

我在分发构建应用程序中遇到问题/崩溃。但不是在开发构建中。发展很好。 (分发应用验证成功)

创建分发版本时出现了什么问题。我检查了所有配置调试和发布。

此处崩溃日志:当我使用分发时从设备(按AdHoc分发并上传到

Hardware Model:      iPhone4,1
Process:             AppName [513]
Path:                /private/var/mobile/Containers/Bundle/Application/F2922A29-2E11-4377-XXXX-327A3DFC4612/AppName.app/AppName
Identifier:          com.user.AppName
Version:             1.2.5 (1.2.5)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2014-11-12 13:05:32.465 +0530
Launch Time:         2014-11-12 12:59:08.534 +0530
OS Version:          iOS 8.1 (12B411)
Report Version:      105

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xf0419f0b
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x3083ef76 objc_msgSend + 22
1   AppName                 0x000d7cc0 -[AsyncUdpSocket doReceive:] (AsyncUdpSocket.m:2181)
2   AppName                 0x000d7fa0 -[AsyncUdpSocket doCFSocketCallback:forSocket:withAddress:withData:] (AsyncUdpSocket.m:2281)
3   AppName                 0x000d3e7c MyCFSocketCallback (AsyncUdpSocket.m:2297)
4   CoreFoundation                  0x22f9ce9c __CFSocketPerformV0 + 552
5   CoreFoundation                  0x22f9a5e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
6   CoreFoundation                  0x22f999f6 __CFRunLoopDoSources0 + 218
7   CoreFoundation                  0x22f98074 __CFRunLoopRun + 764
8   CoreFoundation                  0x22ee597c CFRunLoopRunSpecific + 472
9   CoreFoundation                  0x22ee578e CFRunLoopRunInMode + 102
10  GraphicsServices                0x2a2be04c GSEventRunModal + 132
11  UIKit                           0x264d797c UIApplicationMain + 1436
12  AppName                 0x000d80ca main (main.m:16)
13  AppName                 0x0009149c start + 36

)

我错过了任何配置? 请帮我解决这个问题。

感谢。

1 个答案:

答案 0 :(得分:0)

最近我遇到了AsyncUDPSocket的这个问题,我相信它是因为AsyncUDPSocket不是线程安全的,而且在调试模式下,你可能只在分发时运行一个线程,各种优化都会导致它崩溃。 / p>

我已转换为GDCAsyncUdpSocket,我的发布版本不会崩溃。祝你好运!