由于此 NSConcreteBlock 错误,我的应用程序在 3.1.3 上崩溃。我读了the other post on this topic ,答案是弱链接 libSystem.B.dylib。
但是,我根本没有在我的应用程序中包含该库,而且我仍然遇到同样的错误。
还有什么可能导致这次崩溃?
这是日志:
代码类型:ARM(原生) 父进程:launchd 1
日期/时间:2011-10-20 14:05:08.189 -0700 操作系统版本:iPhone OS 3.1.3 (7E18) 报告版本:104
异常类型:EXC_BREAKPOINT (SIGTRAP) 异常代码:0x00000001、0xe7ffdefe 线程崩溃:0
Dyld 错误信息: 找不到符号:__NSConcreteStackBlock 预计在:/usr/lib/libSystem.B.dylib 代尔德版本:149
最佳答案
However, I am not including that library in my app at all, and I'm still getting the same bug.
除了无法逃避 libSystem,因为它实现了标准 C 运行时库等。每当你编译 Objective-C 程序时,编译器都会自动链接 libSystem.而且,如果您通过 otool -L
检查 UIKit 或 Foundation 等系统框架,您会发现它们也链接到 libSystem。
这意味着 Bard Larson 在 this answer 中描述的解决方案应该也适合你。
关于iphone - iOS 4 应用程序在 3.1.3 : Symbol not found: __NSConcreteStackBlock 上启动时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7914359/