2012-10-15 52 views
1

我有這個碰撞報告。對碰撞報告缺乏瞭解

Incident Identifier: CA9E350A-C842-4349-AAD8-E9E62E93BDD1 
CrashReporter Key: 360bc129d2f79a48e291eb5ca38b24e822ed5b6b 
Hardware Model:  xxx 
Process:   OrientalDailyiOS [1502] 
Path:   /var/mobile/Applications/39480A57-68FF-4C46-8445-340EFE204119/OrientalDailyiOS.app/OrientalDailyiOS 
Identifier:  OrientalDailyiOS 
Version:   ??? (???) 
Code Type:  ARM (Native) 
Parent Process: launchd [1] 

Date/Time:  2012-10-14 15:49:10.884 -0700 
OS Version:  iOS 6.0 (10A403) 
Report Version: 104 

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

Last Exception Backtrace: 
0 CoreFoundation     0x37a0a29e __exceptionPreprocess + 158 
1 libobjc.A.dylib     0x34e3197a objc_exception_throw + 26 
2 CoreFoundation     0x37955b70 -[__NSArrayM objectAtIndex:] + 160 
3 OrientalDailyiOS    0x00064fdc -[Main_NewsDetail viewDidLoad] (Main_NewsDetail.m:43) 
4 UIKit       0x386cb590 -[UIViewController loadViewIfRequired] + 360 
5 UIKit       0x38757336 -[UIViewController shouldAutorotate] + 22 
6 UIKit       0x38798cd4 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1540 
7 UIKit       0x38797fca -[UIViewController presentViewController:withTransition:completion:] + 3390 
8 UIKit       0x388ba252 -[UIViewController presentModalViewController:animated:] + 26 
9 Foundation      0x34364a6a __NSFireDelayedPerform + 446 
10 CoreFoundation     0x379df5da __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 10 
11 CoreFoundation     0x379df28c __CFRunLoopDoTimer + 268 
12 CoreFoundation     0x379ddefc __CFRunLoopRun + 1228 
13 CoreFoundation     0x37950eb8 0x37948000 + 36536 
14 CoreFoundation     0x37950d44 CFRunLoopRunInMode + 100 
15 GraphicsServices    0x373e32e6 GSEventRunModal + 70 
16 UIKit       0x387002fc 0x386a9000 + 357116 
17 OrientalDailyiOS    0x0005fac2 main (main.m:16) 
18 OrientalDailyiOS    0x0005fa84 0x5e000 + 6788 

但是,我不知道錯誤在哪裏,我玩弄我的應用程序,但顯示沒有錯誤。

我也嘗試過使用iPad的iOS 6,沒問題。

蘋果公司的反饋是

We found that your app crashed on iPad running iOS 6, which is not in compliance with the App Store Review Guidelines. 

Your app crashed on both Wi-Fi and cellular networks when we: 

1. Launch the app. 
2. Tap any item on main page. 
3. App crashes. 

更新

Main_NewDetails 

- (void)viewDidLoad 
{ 
[super viewDidLoad]; 
[slider setHidden:YES]; 
DatabaseAction *getnews = [[[DatabaseAction alloc] init] autorelease]; 
self.singlenews = [getnews retrieveSingleNews:newsid]; 
self.defaultsize = [getnews retrieveFont]; 
font = [self.defaultsize objectAtIndex:0]; 
currentsize = font.Font_Size; 
News *new = [self.singlenews objectAtIndex:0]; 
if(self.catsid != 10) 
    self.header.text = new.News_Cat_Name; 
else 
    self.header.text = @"評論"; 
self.title.text = new.News_Title; 
authortext = new.News_Author; 
self.content.text = [NSString stringWithFormat: @"%@%@", new.News_IntroText, new.News_FullText]; 
self.introtext = new.News_IntroText; 
self.content.font = [UIFont systemFontOfSize:currentsize]; 
self.date.text = new.News_ArticalDate; 
self.commentno.text = @"留言: 0"; 
imagepath = new.News_ImagePath; 
onetime = YES; 

if([Constant_Config NetworkStatus]){ 
    if(![imagepath isEqualToString:@"no picture"]){ 
     NSOperationQueue *queue = [NSOperationQueue new]; 
     NSInvocationOperation *operation = [[NSInvocationOperation alloc] 
              initWithTarget:self 
              selector:@selector(loadImage) 
              object:nil]; 
     [queue addOperation:operation]; 
     [operation release]; 
    } 

    NetworkHandler *networkHandler=[[NetworkHandler alloc] init]; 
    GetTotalCommentsRequest *gettotalcomments= [[GetTotalCommentsRequest alloc] init:newsid]; 

    [networkHandler setDelegate:self]; 
    [networkHandler request:gettotalcomments]; 
    [gettotalcomments release]; 
    [networkHandler release]; 

    [self.scrollView addSubview:[self addbanner]]; 
    [self.scrollView addSubview:[self addbanner]]; 
} 

[self setlabelXY]; 

AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate]; 
[appDelegate openSessionWithAllowLoginUI:NO]; 
} 
+0

請參閱下面的答案。發佈viewDidLoad方法的代碼也可能有幫助。 – Jessedc

回答

1

什麼你看是一個堆棧跟蹤,該方案經過您的代碼路徑。每行都是一個函數,從主運行循環(18)開始到崩潰(0)結束。

最有用的部分是你已經在你的應用程序OrientalDailyiOS在框架中創建的功能3.

您的應用程序崩潰試圖訪問一個對象在一個NSArray(幀2)您Main_NewsDetail viewDidLoad]方法(幀3內)。

編輯

正如我所說的,你的應用程序崩潰試圖在一個NSArray訪問對象。仔細看看你的應用程序,特別是你的viewDidLoad方法中的兩條線,使用的方法會崩潰在objectAtIndex:以上。

font = [self.defaultsize objectAtIndex:0]; 

News *new = [self.singlenews objectAtIndex:0]; 

你是如何填充的self.singlenews?如果沒有物體,情況如何?

+0

我已更新帖子 –

+0

但是,我運行這個xib,沒有問題發生,我不知道爲什麼他們仍然發生 –

+0

當我生成一個ipa文件並同步到設備,它有錯誤,但是當我直接從Xcode調試,它沒有問題,是什麼問題? –