2012-01-11 3 views
0

私はApp Storeに自分のAppを送っていましたが、クラッシュのために拒否されました。私はシミュレートしようとしていますが、デバイス上でアプリケーションを実行してもクラッシュログは表示されません。ログを解釈して私のデバイス上でシミュレートできない理由を教えてください。申し訳ありませんが、iOS開発の初心者です。は、私に送信されたiOSクラッシュレポートをシミュレートできません

ここは報告書です。

Thread 4 Crashed: 
0 WebCore       0x3375a366 _ZL17_WebTryThreadLockb + 202 
1 WebCore       0x3375a28c WebThreadLock + 48 
2 UIKit       0x3294ac64 -[UITextRangeImpl isEmpty] + 4 
3 UIKit       0x3294ee66 -[UITextRange(UITextSelectionAdditions) _isCaret] + 14 
4 UIKit       0x328f2c2c -[UITextSelectionView setCaretBlinks:] + 132 
5 UIKit       0x32951a0a -[UIKeyboardImpl setCaretBlinks:] + 94 
6 UIKit       0x3288799a -[UIKeyboardImpl setDelegate:force:] + 242 
7 UIKit       0x32869f1c -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 608 
8 UIKit       0x328c2e68 -[UINavigationController navigationTransitionView:didStartTransition:] + 944 
9 UIKit       0x328c24c0 -[UINavigationTransitionView transition:fromView:toView:] + 660 
10 UIKit       0x328c2220 -[UINavigationTransitionView transition:toView:] + 20 
11 UIKit       0x328aa95c -[UINavigationController _startTransition:fromViewController:toViewController:] + 2368 
12 UIKit       0x328a9f4c -[UINavigationController _startDeferredTransitionIfNeeded] + 244 
13 UIKit       0x3289e66c -[UINavigationController pushViewController:transition:forceImmediate:] + 800 
14 UIKit       0x3289e342 -[UINavigationController pushViewController:animated:] + 30 
15 Meetings      0x00053558 -[LoginView loadMeetings] (LoginView.m:50) 
16 Foundation      0x32d46a8a -[NSThread main] + 66 
17 Foundation      0x32dda59a __NSThread__main__ + 1042 
18 libsystem_c.dylib    0x32f17c16 _pthread_start + 314 
19 libsystem_c.dylib    0x32f17ad0 thread_start + 0 

は、ここでのコードはあなたがバックグラウンドスレッドからナビゲーションコントローラのスタックに新しいビューコントローラをプッシュしている

-(void) loadMeetings { 
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
    UITableViewController *myViewController = [[RootViewController alloc] initWithNibName:@"RootView" bundle:nil]; 
    myViewController.title = @"Meetings"; 
    myViewController.view.backgroundColor = [UIColor colorWithRed:.953 green:.965 blue:.886 alpha:1]; 
    [self.navigationController pushViewController:myViewController animated:YES]; 
    [spinner stopAnimating]; 
    [pool drain]; 
} 
+0

LoginViewクラスのloadMeetingsメソッドでエラーが発生しています。正確には50行目。 いくつかのコードを入力してください – Novarg

+0

上記のコードをご覧ください。あなたの助けを前にありがとう。 – user1144195

答えて

5

を要求しています。 UIKitへのすべての呼び出しは、メインスレッドで実行する必要があります。 LoginViewloadMeetingsメソッドを確認し、最初にバックグラウンドスレッドで送信された理由を把握してください。

+0

あなたは私にこのコードでそれを行う方法を教えてもらえますか? – user1144195

+0

あなたのコードを見て、 'LoginView'のインスタンスに' loadMeetings'をどこに送るのかを調べてください。そのメソッドは、バックグラウンドスレッドで実行されている送信ですか? –

+0

私は別のスレッドで実行しています。コードは次のとおりです。 – user1144195

関連する問題