iphone - 被拒绝的 iPhone 应用程序有奇怪的崩溃日志

标签 iphone ios4 crash kernel exception-code

由于崩溃产生了下面的崩溃日志,我的应用被应用商店拒绝。比崩溃更奇怪的是,重现它的步骤不会发生在我或 10 多个 beta 测试人员中的任何一个身上(在不同的 iOS 设备上)。任何人都可以帮助解释更多吗?我知道异常代码是某种内存问题,但这是导致此崩溃日志的唯一原因吗?例如,我什至没有得到行号。

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib               0x33bd52d4 __kill + 8
1   libSystem.B.dylib               0x33bd52c4 kill + 4
2   libSystem.B.dylib               0x33bd52b6 raise + 10
3   libSystem.B.dylib               0x33be9d72 abort + 50
4   libstdc++.6.dylib               0x31bdba20 __gnu_cxx::__verbose_terminate_handler() + 376
5   libobjc.A.dylib                 0x3347c594 _objc_terminate + 104
6   libstdc++.6.dylib               0x31bd9df2 __cxxabiv1::__terminate(void (*)()) + 46
7   libstdc++.6.dylib               0x31bd9e46 std::terminate() + 10
8   libstdc++.6.dylib               0x31bd9f16 __cxa_throw + 78
9   libobjc.A.dylib                 0x3347b4c4 objc_exception_throw + 64
10  Foundation                      0x33639910 __NSThreadPerformPerform + 648
11  CoreFoundation                  0x33a767d6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
12  CoreFoundation                  0x33a485b0 __CFRunLoopDoSources0 + 376
13  CoreFoundation                  0x33a47e54 __CFRunLoopRun + 224
14  CoreFoundation                  0x33a47c80 CFRunLoopRunSpecific + 224
15  CoreFoundation                  0x33a47b88 CFRunLoopRunInMode + 52
16  GraphicsServices                0x33b0e4a4 GSEventRunModal + 108
17  GraphicsServices                0x33b0e550 GSEventRun + 56
18  UIKit                           0x32099322 -[UIApplication _run] + 406
19  UIKit                           0x32096e8c UIApplicationMain + 664
20  AppName                         0x00002172 main (main.m:14)
21  AppName                         0x0000213c start + 32

最佳答案

您的代码在某处抛出了未处理的异常,或者由于某种原因调用了 abort()。看起来它发生在对主线程的调度中(所以在某处你调用类似 [obj performSelectorOnMainThread:@selector(something:) withObject:nil] 或类似的东西。我最好的猜测是你选择的选择器在对象上不存在(或者由于内存管理问题,例如对象被其他东西替换)或由于您正在执行的某些动态分配。

关于iphone - 被拒绝的 iPhone 应用程序有奇怪的崩溃日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5148756/

相关文章:

macos - 在另一台Mac上打开后,我构建的任何Mac应用(osx)都会立即崩溃

xcode - Sprite Kit iOS 7.1 在 removeFromParent 上崩溃

iOS使用socket连接发送数据

ios - 通过 IOS 应用程序中的 webview Controller 付款

iphone - iOS - QuickLook - 如何在没有 UIScrollView 的情况下在 QuickLook 中打开对象

objective-c - 如何在UIWebView中跳转pdf页面?

iphone - 根据纪元时间对 NSMutableArray 对象进行排序

iphone - 第一个 UIView 纵向,第二个 UIView 横向

iphone - 重新安装 UIKit 和 Foundation 框架后 iOS SDK 损坏

ios - 由于未捕获的异常而终止应用程序。 "nil string parameter"