这是我感兴趣的崩溃日志的一部分:
1 TEST_iPhone_App 0x00043ff2 -[TSClassName methodName] (TSClassName.m:86)
以免说该方法如下所示:
- (void) methodName {
// Some code...
[self otherMethod]; // This is line #86
// Some more code...
}
- (void) otherMethod {
// Dubious code... could the crash be here?
}
我的问题是,崩溃日志是否可能指代otherMethod?也许otherMethod是内联的,它不能区分两种方法之间的区别,或者它肯定是参考中的代码methodName
编辑:我看过第 86 行,它是对otherMethod. 这是否意味着实例被另一个线程释放,因此消息传递self导致错误?还是错误仍然存在otherMethod?