Objective-C iPhone应用程式EXC_BREAKPOINT(SIGTRAP) [英] Objective-C iPhone App EXC_BREAKPOINT (SIGTRAP)
问题描述
我最近在一个月前发布了一个应用程序,它已经过我自己,我的合作伙伴和beta测试人员的全面测试。最近用户联系我的应用程序甚至不能打开(崩溃后启动屏幕),他们有正确的操作系统,他们尝试重新安装。
I recently released an application about a month ago, it was thoroughly tested by myself, my partner, and beta testers. Recently a user contacted me about the app not even being able to open (crashes after start up screen), they have the correct OS and they tried reinstalling.
我要求提供崩溃日志,他们发送给我...
I asked for the crash log and they sent me it...
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000001, 0xe7ffdefe
Crashed Thread: 0
Thread 0 Crashed:
0 dyld 0x2fe01060 0x2fe00000 + 4192
1 dyld 0x2fe088d4 0x2fe00000 + 35028
2 dyld 0x2fe0196c 0x2fe00000 + 6508
3 dyld 0x2fe01048 0x2fe00000 + 4168
Thread 0 crashed with ARM Thread State:
r0: 0x2fe23ca0 r1: 0x00000000 r2: 0x2fe23ca0 r3: 0x00000000
r4: 0x2ffff4e0 r5: 0x2ffff4bc r6: 0x2fe005c0 r7: 0x2ffffb00
r8: 0x00000004 r9: 0x2fe57cf0 r10: 0x2fe236c8 r11: 0x00000009
ip: 0x0000018d sp: 0x2ffff5b8 lr: 0x2fe088dc pc: 0x2fe01060
cpsr: 0x00000010
Binary Images:
0x2fe00000 - 0x2fe22fff dyld ??? (???) <f6a50d5f57a676b54276d0ecef46d5f0> /usr/lib/dyld
我在我的应用程序中似乎找不到问题,的问题会导致EXC_BREAKPOINT(SIGTRAP)?我假设错误在我的AppDelegate内,因为它崩溃在启动屏幕后。
I can't seem to find a problem within my app, what type of problems cause EXC_BREAKPOINT (SIGTRAP)? I'm assuming the error is within my AppDelegate since it crashes right after the start up screen.
推荐答案
我也得到了这个错误,并修复它。这个人运行OS3最可能,你使用的代码块从OS4,你需要设置一个弱链接库,以便它可以正确加载。
在您的LLVM的构建设置
-weak_library /usr/lib/libSystem.B.dylib
I've gotten this error too and fixed it. This person is running OS3 most likely and you are using a code block from OS4 you need to set a weak link on the library so that it can properly load. in your build settings for LLVM -weak_library /usr/lib/libSystem.B.dylib
也在这里讨论
iOS 4应用程式当机在iOS 3.1.3上启动时:找不到符号:__NSConcreteStackBlock
这篇关于Objective-C iPhone应用程式EXC_BREAKPOINT(SIGTRAP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!