无法模拟发送给我的 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];
}
I sent my App to the App Store but was rejected due to some crashes. I'm trying to simulate, run the app on my device but can not see any crash log. Please help to interpret the log and give me some thoughts why I can't simulate it on my device. Sorry I'm new to iOS development.
Here is the report.
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
Here is the code requested
-(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];
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在从后台线程将新的视图控制器推送到导航控制器堆栈上。所有对 UIKit 的调用都必须在主线程上执行。检查
LoginView
上的loadMeetings
方法,并找出为什么它首先在后台线程上发送。You're pushing a new view controller onto a navigation controller stack from a background thread. All calls to UIKit must be performed on the main thread. Check the
loadMeetings
method onLoginView
and figure out why it's being sent on the background thread in the first place.