0

我遇到了困扰我好几天的崩溃问题。这是日志:

request for rect at invalid index path ( 2 indexes [0, 0])
(null)
(
    0   CoreFoundation                      0x31fc33ff  + 186
    1   libobjc.A.dylib                     0x39cbe963 objc_exception_throw + 30
    2   CoreFoundation                      0x31fc329d  + 0
    3   Foundation                          0x32899fa3  + 90
    4   UIKit                               0x33e03087  + 242
    5   UIKit                               0x33e20901  + 112
    6   UIKit                               0x33f8a703  + 46
    7   UIKit                               0x34159b73  + 342
    8   UIKit                               0x33ef513b  + 3698
    9   UIKit                               0x33f0e525  + 124
    10  UIKit                               0x33eefc61  + 128
    11  UIKit                               0x33eb73a1  + 392
    12  UIKit                               0x340a4163  + 46
    13  UIKit                               0x33ddb883  + 218
    14  UIKit                               0x33dda2cd  + 1164
    15  UIKit                               0x33de51e7  + 766
    16  UIKit                               0x33de4db3  + 90
    17  UIKit                               0x33dd28e1  + 380
    18  UIKit                               0x33dd21ef  + 6198
    19  GraphicsServices                    0x35aea5f7  + 590
    20  GraphicsServices                    0x35aea227  + 34
    21  CoreFoundation                      0x31f983e7  + 34
    22  CoreFoundation                      0x31f9838b  + 138
    23  CoreFoundation                      0x31f9720f  + 1382
    24  CoreFoundation                      0x31f0a23d CFRunLoopRunSpecific + 356
    25  CoreFoundation                      0x31f0a0c9 CFRunLoopRunInMode + 104
    26  GraphicsServices                    0x35ae933b GSEventRunModal + 74
    27  UIKit                               0x33e262b9 UIApplicationMain + 1120
    28  MyApp                             **0x3635** MyApp + 9781
    29  libdyld.dylib                       0x3a0ebb20  + 0
)

dSYM UUID: 6DB60E5E-B047-38A9-91CC-5A42AC012288
CPU Type: armv7s
Slide Address: 0x00001000
Binary Image: CafeCar
Base Address: 0x00016000

我用 dYSM 定位到 0x3635,但它显示该错误出现在 main.m:17 中。有人可以帮忙吗?

更新: main.m(默认):

#import <UIKit/UIKit.h>
#import "CCAppDelegate.h"

int main(int argc, char *argv[]){
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([CCAppDelegate class]));
    }
}

请注意,当我第一次将它从 Xcode 安装到我的 iPhone 时,它​​在 main.m 中停止,只有第一次运行。上面的崩溃日志来自在线应用程序。我不知道这两者是否相互关联。

更新:

实际上,我之前已经添加了断点。而且我确信至少程序还没有进入 application:didFinishLaunchingWithOptions: 方法,因为我在那里设置了 NSLog。

在此处输入图像描述

在此处输入图像描述

4

0 回答 0