iPad 4.2崩溃发布

时间:2010-11-13 07:30:33

标签: objective-c ipad cocos2d-iphone

悲伤,伤心的女孩需要你的帮助=)我正在为iPad创建应用程序。 Apple使用iPad 4.2发送应用程序崩溃的日志崩溃。有人可以帮我怎样才能读到这个日志崩溃?我不明白应用程序有什么问题,因为iPad的早期版本不会崩溃。该行CCDirector.m:116是CC_DIRECTOR_INIT();

Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x00000000, 0x00000000

Crashed Thread: 0

Thread 0 Crashed:

0 libSystem.B.dylib 0x361672d4 0x360ee000 + 496340

1 libSystem.B.dylib 0x361672c4 0x360ee000 + 496324

2 libSystem.B.dylib 0x361672b6 0x360ee000 + 496310

3 libSystem.B.dylib 0x3617bd72 0x360ee000 + 580978

4 libstdc++.6.dylib 0x314e9a20 0x314a5000 + 281120

5 libobjc.A.dylib 0x31acb594 0x31ac5000 + 26004

6 libstdc++.6.dylib 0x314e7df2 0x314a5000 + 273906

7 libstdc++.6.dylib 0x314e7e46 0x314a5000 + 273990

8 libstdc++.6.dylib 0x314e7f16 0x314a5000 + 274198

9 libobjc.A.dylib 0x31aca4c4 0x31ac5000 + 21700

10 CoreFoundation 0x3284b7c2 0x327ab000 + 657346

11 Foundation 0x3212f298 0x320dd000 + 336536

12 App_name 0x00026ee4 +[CCDirector setDirectorType:] (CCDirector.m:116)

13 App_name 0x0000335c -[App_name_AppDelegate applicationDidFinishLaunching:] 
(App_name_AppDelegate.m:41)

14 UIKit 0x32c19bfa 0x32bdd000 + 248826

15 UIKit 0x32c15252 0x32bdd000 + 229970

16 UIKit 0x32be1484 0x32bdd000 + 17540

17 UIKit 0x32be0ec2 0x32bdd000 + 16066

18 UIKit 0x32be0900 0x32bdd000 + 14592

19 GraphicsServices 0x3094aefc 0x30946000 + 20220

20 CoreFoundation 0x327e06f8 0x327ab000 + 218872

21 CoreFoundation 0x327e06bc 0x327ab000 + 218812

22 CoreFoundation 0x327d2f76 0x327ab000 + 163702

23 CoreFoundation 0x327d2c80 0x327ab000 + 162944

24 CoreFoundation 0x327d2b88 0x327ab000 + 162696

25 UIKit 0x32c14302 0x32bdd000 + 226050

26 UIKit 0x32c11e8c 0x32bdd000 + 216716

27 App_name 0x00002f50 main (main.m:13)

28 App_name 0x00002f28 start + 32

Thread 1:

0 libSystem.B.dylib 0x3611b974 0x360ee000 + 186740

1 libSystem.B.dylib 0x361c5704 0x360ee000 + 882436

2 libSystem.B.dylib 0x361c5174 0x360ee000 + 881012

3 libSystem.B.dylib 0x361c4b98 0x360ee000 + 879512

4 libSystem.B.dylib 0x3616924a 0x360ee000 + 504394

5 libSystem.B.dylib 0x36161970 0x360ee000 + 473456


Thread 2:

0 libSystem.B.dylib 0x361699e0 0x360ee000 + 506336

1 libSystem.B.dylib 0x36169364 0x360ee000 + 504676

2 libSystem.B.dylib 0x36161970 0x360ee000 + 473456


Thread 3:

0 libSystem.B.dylib 0x360ef268 0x360ee000 + 4712

1 libSystem.B.dylib 0x360f1354 0x360ee000 + 13140

2 CoreFoundation 0x327d3648 0x327ab000 + 165448

3 CoreFoundation 0x327d2ed2 0x327ab000 + 163538

4 CoreFoundation 0x327d2c80 0x327ab000 + 162944

5 CoreFoundation 0x327d2b88 0x327ab000 + 162696

6 WebCore 0x30e54124 0x30d9d000 + 749860

7 libSystem.B.dylib 0x36168886 0x360ee000 + 501894

8 libSystem.B.dylib 0x3615da88 0x360ee000 + 457352


Thread 0 crashed with ARM Thread State:

r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3ec0f2e8

r4: 0x00000006 r5: 0x314e7989 r6: 0x0022f24c r7: 0x2fdfe1d0

r8: 0x00073592 r9: 0x00000065 r10: 0x0009f3ec r11: 0x00000000

ip: 0x00000025 sp: 0x2fdfe1d0 lr: 0x361672cb pc: 0x361672d4

cpsr: 0x00000010 

1 个答案:

答案 0 :(得分:0)

这是applicationDidFinishLaunching -method。这个4.2模拟器是否已经可以用于xcode了?

  • (void)applicationDidFinishLaunching :( UIApplication *)应用程序 { [application setIdleTimerDisabled:YES];

    self.notifyCenter = [NSNotificationCenter defaultCenter];

    [notifyCenter addObserver:self selector:@selector(trackNotifications :) name:nil object:nil];

    //告诉UIDevice在方向改变时发送通知

    // CC_DIRECTOR_INIT() // // 1.使用0位深度格式和RGB565渲染缓冲区初始化EAGLView // 2. EAGLView多次触摸:禁用 // 3.创建一个UIWindow,并将其分配给“window”var(必须已经声明) // 4.父母EAGLView到新创建的窗口 // 5.创建Display Link Director // 5a。如果失败,它将使用NSTimer主管 // 6.它将尝试以60 FPS运行 // 7.显示FPS:NO // 8.设备方向:纵向 // 9.将导演连接到EAGLView //

    CC_DIRECTOR_INIT();

    [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged :) name:@“UIDeviceOrientationDidChangeNotification”object:nil];

    // Obtain the shared director in order to...
    

    CCDirector * director = [CCDirector sharedDirector];

    //设置横向模式

    [director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];

    //打开显示屏FPS

    [导演setDisplayFPS:不];

    //启用多个触摸

    EAGLView * view = [director openGLView];

    [view setMultipleTouchEnabled:YES];

    // PNG / BMP / TIFF / JPEG / GIF图像的默认纹理格式 //它可以是RGBA8888,RGBA4444,RGB5_A1,RGB565 //你可以随时改变。

    [CCTexture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_RGBA8888];

    状态= 1;

    STATE2 = 1;

    开始*开始= [开始节点];

    [[CCDirector sharedDirector] runWithScene:start];

}