2012-01-15 36 views
-1

我已經開發了帶有最新SDK和XCode 4.2的iOS 4應用程序。使用ios4在iPhone 3GS上運行的應用程序,但在使用iOS 5.0.1的iPhone 4中運行的應用程序

我已經在我的iPhone 3GS上使用iOs 4.3.5和模擬器進行了測試,它的工作原理!但是現在,我已經發送它進行審查,並且它已被拒絕,因爲它在使用iOS 5.0.1的iPhone 4上崩潰。

他們說:

我們發現,您的應用程序在啓動時墜毀在iPhone上安裝4運行iOS 5.0.1

這是崩潰日誌:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>AutoSubmitted</key> 
    <true/> 
    <key>SysInfoCrashReporterKey</key> 
    <string>b46ed4c9a3547574ffc93e0841c55f1097ba4371</string> 
    <key>bug_type</key> 
    <string>109</string> 
    <key>description</key> 
    <string>Incident Identifier: F3CE50AF-D164-4C60-BE4D-65D7F42E5226 
CrashReporter Key: b46ed4c9a3547574ffc93e0841c55f1097ba4371 
Hardware Model:  iPhone3,1 
Process:   Tarot [5670] 
Path:   /var/mobile/Applications/C9491EAA-4064-4884-8349-334DC1EE87DF/Tarot.app/Tarot 
Identifier:  Tarot 
Version:   ??? (???) 
Code Type:  ARM (Native) 
Parent Process: launchd [1] 

Date/Time:  2012-01-13 10:58:14.166 -0800 
OS Version:  iPhone OS 5.0.1 (9A405) 
Report Version: 104 

Exception Type: EXC_CRASH (SIGABRT) 
Exception Codes: 0x00000000, 0x00000000 
Crashed Thread: 0 

Last Exception Backtrace: 
(0x342ca8bf 0x3451a1e5 0x342ca7b9 0x342ca7db 0x378e7747 0x378579cb 0x37736ea1 0x376ac78b 0x376d0f51 0x376956a5 0x377580e5 0x3769de51 0x3769de6d 0x3769dcff 0x3769dcdb 0x233b 0x376ab7eb 0x376a53bd 0x37673921 0x376733bf 0x37672d2d 0x30aa5df3 0x3429e553 0x3429e4f5 0x3429d343 0x342204dd 0x342203a5 0x376a4457 0x376a1743 0x20a7 0x2040) 

Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 libsystem_kernel.dylib   0x361e532c 0x361d4000 + 70444 
1 libsystem_c.dylib    0x330aef54 0x33061000 + 319316 
2 libsystem_c.dylib    0x330a7fe4 0x33061000 + 290788 
3 libc++abi.dylib     0x336f1f64 0x336eb000 + 28516 
4 libc++abi.dylib     0x336ef346 0x336eb000 + 17222 
5 libobjc.A.dylib     0x3451a2dc 0x34511000 + 37596 
6 libc++abi.dylib     0x336ef3be 0x336eb000 + 17342 
7 libc++abi.dylib     0x336ef44a 0x336eb000 + 17482 
8 libc++abi.dylib     0x336f081e 0x336eb000 + 22558 
9 libobjc.A.dylib     0x3451a22e 0x34511000 + 37422 
10 CoreFoundation     0x3422053e 0x34211000 + 62782 
11 CoreFoundation     0x3422039e 0x34211000 + 62366 
12 UIKit       0x376a4450 0x37670000 + 214096 
13 UIKit       0x376a173c 0x37670000 + 202556 
14 Tarot       0x000020a0 0x1000 + 4256 
15 Tarot       0x00002038 0x1000 + 4152 

Thread 1 name: Dispatch queue: com.apple.libdispatch-manager 
Thread 1: 
0 libsystem_kernel.dylib   0x361d53b4 0x361d4000 + 5044 
1 libdispatch.dylib    0x36effe78 0x36ef3000 + 52856 
2 libdispatch.dylib    0x36effb96 0x36ef3000 + 52118 

Thread 2: 
0 libsystem_kernel.dylib   0x361e5cd4 0x361d4000 + 72916 
1 libsystem_c.dylib    0x3306b30a 0x33061000 + 41738 
2 libsystem_c.dylib    0x3306b09c 0x33061000 + 41116 

Thread 3: 
0 libsystem_kernel.dylib   0x361e5cd4 0x361d4000 + 72916 
1 libsystem_c.dylib    0x3306b30a 0x33061000 + 41738 
2 libsystem_c.dylib    0x3306b09c 0x33061000 + 41116 

Thread 4 name: WebThread 
Thread 4: 
0 libsystem_kernel.dylib   0x361d5010 0x361d4000 + 4112 
1 libsystem_kernel.dylib   0x361d5206 0x361d4000 + 4614 
2 CoreFoundation     0x3429e41c 0x34211000 + 578588 
3 CoreFoundation     0x3429d154 0x34211000 + 573780 
4 CoreFoundation     0x342204d6 0x34211000 + 62678 
5 CoreFoundation     0x3422039e 0x34211000 + 62366 
6 WebCore       0x366f4128 0x3664c000 + 688424 
7 libsystem_c.dylib    0x33070c16 0x33061000 + 64534 
8 libsystem_c.dylib    0x33070ad0 0x33061000 + 64208 

Thread 0 crashed with ARM Thread State: 
    r0: 0x00000000 r1: 0x00000000  r2: 0x00000001  r3: 0x00000000 
    r4: 0x00000006 r5: 0x3e998ce8  r6: 0x00000002  r7: 0x2fdffa70 
    r8: 0x3fc3cdec r9: 0x336f2a4a  r10: 0x00141140  r11: 0x3fc4863c 
    ip: 0x00000148 sp: 0x2fdffa64  lr: 0x330aef5b  pc: 0x361e532c 
    cpsr: 0x00000010 

Binary Images: 
    0x1000 -  0x7fff +Tarot armv7 &lt;c7e3c083432a3060ac78f8c06c91c3ec&gt; /var/mobile/Applications/C9491EAA-4064-4884-8349-334DC1EE87DF/Tarot.app/Tarot 
0x2fefc000 - 0x2ff1dfff dyld armv7 &lt;be7c0b491a943054ad12eb5060f1da06&gt; 
0x37c5a000 - 0x37c5afff libunwind.dylib armv7 &lt;d21222aad8c93d6c9580f9bf47071946&gt; /usr/lib/system/libunwind.dylib 
</string> 
    <key>displayName</key> 
    <string>Tarot</string> 
    <key>name</key> 
    <string>Tarot</string> 
    <key>os_version</key> 
    <string>iPhone OS 5.0.1 (9A405)</string> 
    <key>system_ID</key> 
    <string></string> 
    <key>version</key> 
    <string>??? (???)</string> 
</dict> 
</plist> 

UPDATE
這是碰撞符號:

Incident Identifier: F3CE50AF-D164-4C60-BE4D-65D7F42E5226 
    CrashReporter Key: b46ed4c9a3547574ffc93e0841c55f1097ba4371 
    Hardware Model:  iPhone3,1 
    Process:   Tarot [5670] 
    Path:   /var/mobile/Applications/C9491EAA-4064-4884-8349-334DC1EE87DF/Tarot.app/Tarot 
    Identifier:  Tarot 
    Version:   ??? (???) 
    Code Type:  ARM (Native) 
    Parent Process: launchd [1] 

    Date/Time:  2012-01-13 10:58:14.166 -0800 
    OS Version:  iPhone OS 5.0.1 (9A405) 
    Report Version: 104 

    Exception Type: EXC_CRASH (SIGABRT) 
    Exception Codes: 0x00000000, 0x00000000 
    Crashed Thread: 0 

    Last Exception Backtrace: 
    0 CoreFoundation     0x342ca8bf 0x34211000 + 759999 
    1 libobjc.A.dylib     0x3451a1e5 0x34511000 + 37349 
    2 CoreFoundation     0x342ca7b9 0x34211000 + 759737 
    3 CoreFoundation     0x342ca7db 0x34211000 + 759771 
    4 UIKit       0x378e7747 0x37670000 + 2586439 
    5 UIKit       0x378579cb 0x37670000 + 1997259 
    6 UIKit       0x37736ea1 0x37670000 + 814753 
    7 UIKit       0x376ac78b 0x37670000 + 247691 
    8 UIKit       0x376d0f51 0x37670000 + 397137 
    9 UIKit       0x376956a5 0x37670000 + 153253 
    10 UIKit       0x377580e5 0x37670000 + 950501 
    11 UIKit       0x3769de51 0x37670000 + 187985 
    12 UIKit       0x3769de6d 0x37670000 + 188013 
    13 UIKit       0x3769dcff 0x37670000 + 187647 
    14 UIKit       0x3769dcdb 0x37670000 + 187611 
    15 Tarot       0x0000233b -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:46) 
    16 UIKit       0x376ab7eb 0x37670000 + 243691 
    17 UIKit       0x376a53bd 0x37670000 + 218045 
    18 UIKit       0x37673921 0x37670000 + 14625 
    19 UIKit       0x376733bf 0x37670000 + 13247 
    20 UIKit       0x37672d2d 0x37670000 + 11565 
    21 GraphicsServices    0x30aa5df3 0x30aa1000 + 19955 
    22 CoreFoundation     0x3429e553 0x34211000 + 578899 
    23 CoreFoundation     0x3429e4f5 0x34211000 + 578805 
    24 CoreFoundation     0x3429d343 0x34211000 + 574275 
    25 CoreFoundation     0x342204dd 0x34211000 + 62685 
    26 CoreFoundation     0x342203a5 0x34211000 + 62373 
    27 UIKit       0x376a4457 0x37670000 + 214103 
    28 UIKit       0x376a1743 0x37670000 + 202563 
    29 Tarot       0x000020a7 main (main.m:16) 
    30 Tarot       0x00002040 0x1000 + 4160 


    Thread 0 name: Dispatch queue: com.apple.main-thread 
    Thread 0 Crashed: 
    0 libsystem_kernel.dylib   0x361e532c 0x361d4000 + 70444 
    1 libsystem_c.dylib    0x330aef54 0x33061000 + 319316 
    2 libsystem_c.dylib    0x330a7fe4 0x33061000 + 290788 
    3 libc++abi.dylib     0x336f1f64 abort_message + 40 
    4 libc++abi.dylib     0x336ef346 default_terminate() + 18 
    5 libobjc.A.dylib     0x3451a2dc 0x34511000 + 37596 
    6 libc++abi.dylib     0x336ef3be safe_handler_caller(void (*)()) + 70 
    7 libc++abi.dylib     0x336ef44a std::terminate() + 14 
    8 libc++abi.dylib     0x336f081e __cxa_rethrow + 82 
    9 libobjc.A.dylib     0x3451a22e 0x34511000 + 37422 
    10 CoreFoundation     0x3422053e 0x34211000 + 62782 
    11 CoreFoundation     0x3422039e 0x34211000 + 62366 
    12 UIKit       0x376a4450 0x37670000 + 214096 
    13 UIKit       0x376a173c 0x37670000 + 202556 
    14 Tarot       0x000020a0 main (main.m:16) 
    15 Tarot       0x00002038 0x1000 + 4152 

    Thread 1 name: Dispatch queue: com.apple.libdispatch-manager 
    Thread 1: 
    0 libsystem_kernel.dylib   0x361d53b4 0x361d4000 + 5044 
    1 libdispatch.dylib    0x36effe78 0x36ef3000 + 52856 
    2 libdispatch.dylib    0x36effb96 0x36ef3000 + 52118 

    Thread 2: 
    0 libsystem_kernel.dylib   0x361e5cd4 0x361d4000 + 72916 
    1 libsystem_c.dylib    0x3306b30a 0x33061000 + 41738 
    2 libsystem_c.dylib    0x3306b09c 0x33061000 + 41116 

    Thread 3: 
    0 libsystem_kernel.dylib   0x361e5cd4 0x361d4000 + 72916 
    1 libsystem_c.dylib    0x3306b30a 0x33061000 + 41738 
    2 libsystem_c.dylib    0x3306b09c 0x33061000 + 41116 

    Thread 4 name: WebThread 
    Thread 4: 
    0 libsystem_kernel.dylib   0x361d5010 0x361d4000 + 4112 
    1 libsystem_kernel.dylib   0x361d5206 0x361d4000 + 4614 
    2 CoreFoundation     0x3429e41c 0x34211000 + 578588 
    3 CoreFoundation     0x3429d154 0x34211000 + 573780 
    4 CoreFoundation     0x342204d6 0x34211000 + 62678 
    5 CoreFoundation     0x3422039e 0x34211000 + 62366 
    6 WebCore       0x366f4128 0x3664c000 + 688424 
    7 libsystem_c.dylib    0x33070c16 0x33061000 + 64534 
    8 libsystem_c.dylib    0x33070ad0 0x33061000 + 64208 

    Thread 0 crashed with ARM Thread State: 
     r0: 0x00000000 r1: 0x00000000  r2: 0x00000001  r3: 0x00000000 
     r4: 0x00000006 r5: 0x3e998ce8  r6: 0x00000002  r7: 0x2fdffa70 
     r8: 0x3fc3cdec r9: 0x336f2a4a  r10: 0x00141140  r11: 0x3fc4863c 
     ip: 0x00000148 sp: 0x2fdffa64  lr: 0x330aef5b  pc: 0x361e532c 
     cpsr: 0x00000010 

    Binary Images: 
     0x1000 -  0x7fff +Tarot armv7 <c7e3c083432a3060ac78f8c06c91c3ec> 
... 
    0x37c5a000 - 0x37c5afff libunwind.dylib armv7 <d21222aad8c93d6c9580f9bf47071946> /usr/lib/system/libunwind.dylib 


更新的最終

我不知道該怎麼處理這個問題。我認爲這可能是一個我手動添加的navcontroller問題。這是代碼:

#import <UIKit/UIKit.h> 

@class ViewController; 
@class OneCardViewController; 
@class ThreeCardsViewController; 
@class AboutViewController; 

@interface AppDelegate : UIResponder <UIApplicationDelegate> 
{ 
    UINavigationController* navController; 
    ViewController* viewController; 
    OneCardViewController* oneCardViewController; 
    ThreeCardsViewController* threeCardsViewController; 
    AboutViewController* aboutViewController; 
} 

@property (strong, nonatomic) UIWindow *window; 
@property (strong, nonatomic) ViewController *viewController; 

UPDATE
張貼在這裏的第一行是對的XCode編輯線17。
更新的最終

和M文件:

@implementation AppDelegate 

@synthesize window = _window; 
@synthesize viewController; 

- (void)dealloc 
{ 
    [_window release]; 

    [navController release]; 
    [viewController release]; 
    [oneCardViewController release]; 
    [threeCardsViewController release]; 
    [aboutViewController release]; 

    [super dealloc]; 
} 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{ 
    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; 
    // Override point for customization after application launch. 
    viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; 
    viewController.title = @"Menu"; 
    navController = [[UINavigationController alloc] initWithRootViewController:viewController]; 
    navController.navigationBar.tintColor = [UIColor darkGrayColor]; 

    self.window.rootViewController = navController; 

    [self.window makeKeyAndVisible]; 
    return YES; 
} 

你能幫助我嗎?
UPDATE
這似乎與此行的一個問題:

[self.window makeKeyAndVisible]; 
+1

請發表符號化的最後異常回溯。 – Costique 2012-01-15 07:22:09

+0

對不起,我不知道什麼是符號化的最後異常回溯。 – VansFannel 2012-01-15 07:23:33

+0

崩潰報告包含「Last Exception Backtrace」。您可以使用'atos'命令行工具將地址轉換爲可讀的函數名稱。 – Costique 2012-01-15 07:28:05

回答

1

問題出現在您的ViewController代碼中,或者它是NIB。查看該班級的viewWillAppear:viewDidAppear:。在NIB中,查找任何缺少的引用文件(例如圖像視圖缺失圖像)。

不幸的是,還沒有發佈該代碼,所以進一步的幫助是有限的。 但是..爲什麼你不升級你的3GS到iOS5來調試問題?

0

當你使用Xcode的「建立歸檔」命令來構建你的應用程序,調試符號文件應該被自動生成並存儲。這個符號文件可以用來「符號化」崩潰日誌文件,這可以讀取這些文件並找出造成崩潰的原因。將Apple發送給您的日誌文件拖到Xcode Organizer窗口的Devices部分中(或使用該窗口底部的Import按鈕)讓Xcode向您顯示帶符號的日誌文件。堆棧跟蹤會告訴你發生崩潰時運行的是什麼方法,以及導致該方法被調用的其他調用鏈。

+0

他們給我發送了.plist文件,當我試圖拖動設備或導入設備時,什麼也沒有發生。 – VansFannel 2012-01-15 07:45:44

+0

查看[這個問題](http://stackoverflow.com/q/7932992/643383)以獲得更好的描述(包括圖片!)。 – Caleb 2012-01-15 07:49:11

+0

我已添加符號化日誌作爲更新我的問題。 – VansFannel 2012-01-15 08:06:03

相關問題