我的 APP 在(ipad 6.1 模拟器、ipad 6.0 模拟器和 ipad 5.1 模拟器)中运行良好。但是在我的ipad上安装后,它就不再工作了。
我使用 Organizer-Dervices 来调试错误,并得到错误消息:
安慰: 7 月 31 日 21:55:27 Sandy ReportCrash[937]:为流程 BenefitPad[781] 制定崩溃报告 7 月 31 日 21:55:27 Sandy ReportCrash[937]:libMobileGestalt copySystemVersionDictionaryValue:无法从系统版本字典中查找 ReleaseType
Dervice Logs:
Incident Identifier: F6306353-BEF8-4626-8FA1-17F8C829AEE4
CrashReporter Key: 1a786173c1c72ae5d44172b3d641feee8e91a4af
Hardware Model: iPad3,3
Process: BenefitPad [778]
Path: /var/mobile/Applications/D733430C-510D-4D2A-9D88-6361A6074485/BenefitPad.app/BenefitPad
Identifier: BenefitPad
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-07-31 19:46:51.989 +0800
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x75417466
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x3935c52c objc_retain + 12
1 BenefitPad 0x001571fe 0xe8000 + 455166
2 CoreFoundation 0x3140c034 _CFXNotificationPost + 1424
3 Foundation 0x31d22594 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
4 Foundation 0x31d26056 -[NSNotificationCenter postNotificationName:object:] + 26
5 BenefitPad 0x0010cc12 0xe8000 + 150546
6 BenefitPad 0x000fe2da 0xe8000 + 90842
7 BenefitPad 0x00134cd8 0xe8000 + 314584
8 BenefitPad 0x00135d02 0xe8000 + 318722
9 libdispatch.dylib 0x3977711c _dispatch_call_block_and_release + 8
10 libdispatch.dylib 0x397764b4 _dispatch_client_callout + 20
11 libdispatch.dylib 0x3977b1b8 _dispatch_main_queue_callback_4CF$VARIANT$mp + 220
12 CoreFoundation 0x3148ef36 __CFRunLoopRun + 1286
13 CoreFoundation 0x31401eb8 CFRunLoopRunSpecific + 352
14 CoreFoundation 0x31401d44 CFRunLoopRunInMode + 100
15 GraphicsServices 0x34fb62e6 GSEventRunModal + 70
16 UIKit 0x333172fc UIApplicationMain + 1116
17 BenefitPad 0x000fd92c 0xe8000 + 88364
18 BenefitPad 0x000e9aec 0xe8000 + 6892
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3984d648 kevent64 + 24
1 libdispatch.dylib 0x3977d974 _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3977d654 _dispatch_mgr_thread$VARIANT$mp + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3984ceb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3984d048 mach_msg + 36
2 CoreFoundation 0x31490040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x3148ed9e __CFRunLoopRun + 878
4 CoreFoundation 0x31401eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31401d44 CFRunLoopRunInMode + 100
6 WebCore 0x373f1500 _ZL12RunWebThreadPv + 440
7 libsystem_c.dylib 0x397b630e _pthread_start + 306
8 libsystem_c.dylib 0x397b61d4 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3985dd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x397abcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x397aba12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x397ab8a0 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3985dd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x397abcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x397aba12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x397ab8a0 start_wqthread + 4
并且错误可能发生在方法中(文件:AFHTTPClient.m Line:309):
静态无效AFNetworkReachabilityCallback(SCNetworkReachabilityRef __未使用的目标,SCNetworkReachabilityFlags标志,无效*信息){ AFNetworkReachabilityStatus 状态 = AFNetworkReachabilityStatusForFlags(flags); AFNetworkReachabilityStatusBlock 块 = (__bridge AFNetworkReachabilityStatusBlock)info; 如果(块){ 块(状态); } dispatch_async(dispatch_get_main_queue(), ^{ NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; [notificationCenter postNotificationName:AFNetworkingReachabilityDidChangeNotification 对象:nil userInfo:[NSDictionary dictionaryWithObject:[NSNumber numberWithInteger:status] forKey:AFNetworkingReachabilityNotificationStatusItem]]; }); }
谢谢你的帮助。