iOS应用程序在main.m中崩溃

时间:2013-09-08 14:58:12

标签: iphone ios crash

我遇到了一个让我困扰好几天的撞车问题。 这是日志:

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(defalut):

#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中停止,只有第一次运行。上面的碎片日志来自在线应用程序。我不知道这两个是否与每个都有关其他

更新

实际上,我之前添加了断点。我确信至少程序还没有进入应用程序:didFinishLaunchingWithOptions:我在那里设置NSLog的方法。

enter image description here

enter image description here

0 个答案:

没有答案