2010-11-13 42 views
1

傷心,傷心的女孩需要你的幫助=)我創建應用到iPad。蘋果發送日誌崩潰,iPad 4.2應用崩潰。有人可以幫我怎麼讀這個日誌崩潰?我不明白應用程序的問題,因爲以前的版本不會崩潰。該行CCDirector.m:116 CC_DIRECTOR_INIT();iPad的4.2碰撞推出

 
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 
+0

你的應用程序中調用中止(),這意味着你可能有未處理的異常的地方。在4.2模擬器上運行應用程序,看看是否有異常。 – 2010-11-13 07:32:54

+0

請在App_name_AppDelegate.m中顯示' - [App_name_AppDelegate applicationDidFinishLaunching:]'方法的代碼。 – kennytm 2010-11-13 10:52:42

+0

沒關係,我解決了這個問題=)無論如何謝謝! – remote 2010-11-13 20:03:06

回答

0

這裏是在applicationDidFinishLaunching - 方法。這個4.2模擬器是否都可以用於xcode?

  • (無效)的applicationDidFinishLaunching:(UIApplication的*)應用 { [應用setIdleTimerDisabled:YES];

    self.notifyCenter = [NSNotificationCenter defaultCenter];

    [notifyCenter的addObserver:自選擇器:@selector(trackNotifications :)名稱:無目的:零]。

    //告訴的UIDevice當取向改變

    // CC_DIRECTOR_INIT() // // 1.初始化與0位深度格式的EAGLView,和RGB565渲染緩衝器 發送通知// 2. EAGLView多點觸摸:禁用 // 3.創建一個UIWindow,並將其分配給「窗口」變種(它必須已經聲明) // 4.父母EAGLView到新創建的窗口 // 5.創建顯示鏈接導演 // 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];

    //設置風景模式

    [導演setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];

    //開啓顯示FPS

    [導演setDisplayFPS:NO];

    //開啓多個觸摸

    EAGLView *視圖= [導演openGLView];

    [view setMultipleTouchEnabled:YES];

    //默認紋理格式PNG/BMP/TIFF/JPEG/GIF圖片 //它可以是RGBA8888,RGBA4444,RGB5_A1,RGB565 //您可以隨時更改。

    [CCTexture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_RGBA8888];

    state = 1;

    state2 = 1;

    Start * start = [Start node];

    [[CCDirector sharedDirector] runWithScene:開始];

}