iphone - 应用程序刚刚批准在 iPad 上崩溃

标签 iphone sqlite logging sdk crash

您好,我在 AppStore 上有一个应用程序,我进行了更新,该更新在模拟器和我的 iPad 4 上运行良好,因此我发送到 AppStore 进行发布。该应用程序使用在此版本中更新的 Sqlite 数据库。 我收到消息“应用程序正常并已获得 Apple Ready to Sale 批准”,因此我在 iPad 上下载了该应用程序以查看其工作情况,但它只是在导航 Controller 中崩溃了。

我想知道苹果人是否不会遇到应用程序崩溃的情况,你能给我一些如何解决这个问题的建议吗?

谢谢,这是来自组织者的崩溃日志

    Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2013-03-31 17:45:48.047 +0200
OS Version:      iOS 6.1.2 (10B146)
Report Version:  104

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

Last Exception Backtrace:
0   CoreFoundation                0x323bc3e2 __exceptionPreprocess + 158
1   libobjc.A.dylib               0x3a23c95e objc_exception_throw + 26
2   CoreFoundation                0x323bff2c -[NSObject(NSObject) doesNotRecognizeSelector:] + 180
3   CoreFoundation                0x323be648 ___forwarding___ + 388
4   CoreFoundation                0x32316204 _CF_forwarding_prep_0 + 20
5   APP                       0x0010ec28 -[GADObjectPrivate loadPrivateRequest:autoRefresh:] (GADObjectPrivate.m:412)
6   APP                       0x00110988 -[GADObjectPrivate loadRequest:] (GADObjectPrivate.m:878)
7   APP                       0x0010e108 -[GADBannerView loadRequest:] (GADBannerView.m:267)
8   APP                       0x000ea918 -[ElementDetail viewDidLoad] (ElementDetail.m:61)
9   UIKit                         0x341ea574 -[UIViewController loadViewIfRequired] + 360
10  UIKit                         0x3423f1f2 -[UIViewController contentScrollView] + 22
11  UIKit                         0x3423f138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
12  UIKit                         0x3423f01c -[UINavigationController _layoutViewController:] + 28
13  UIKit                         0x3423ef48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
14  UIKit                         0x3423e694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
15  UIKit                         0x3423e57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
16  UIKit                         0x3422cb56 -[UINavigationController pushViewController:transition:forceImmediate:] + 854
17  UIKit                         0x3422c7f6 -[UINavigationController pushViewController:animated:] + 34
18  APP                       0x000e6982 -[CardsViewController tableView:didSelectRowAtIndexPath:] (CardsViewController.m:323)
19  UIKit                         0x3428d318 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 872
20  UIKit                         0x3430fda4 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 152
21  Foundation                    0x32ccb652 __NSFireDelayedPerform + 446
22  CoreFoundation                0x32391852 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 10
23  CoreFoundation                0x323914fe __CFRunLoopDoTimer + 270
24  CoreFoundation                0x32390172 __CFRunLoopRun + 1226
25  CoreFoundation                0x32303238 CFRunLoopRunSpecific + 352
26  CoreFoundation                0x323030c4 CFRunLoopRunInMode + 100
27  GraphicsServices              0x35ebd336 GSEventRunModal + 70
28  UIKit                         0x3421f2b4 UIApplicationMain + 1116
29  APP                      0x000e31ae main (main.m:14)
30  libdyld.dylib                 0x3a669b1c start + 0

最佳答案

根据this answer ,您应该将 -loadRequest: 调用放在 viewWillAppear 中,而不是 viewDidLoad 中。

Google 似乎并未将源代码发布到 GADObjectPrivate,因此很难验证其是否有效或为何有效。

关于iphone - 应用程序刚刚批准在 iPad 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15731666/

相关文章:

ios - 无法加载视频流

iOS:以编程方式从应用程序退出到主屏幕并优雅地退出动画?

iphone - iOS 无法旋转

.net - 个人身份信息 (PII)、跟踪和消息记录

ios - iPhone 8 和 iPhone X 的不同视角

android - 如何查看为 Android/SQLite 生成的 SQL 语句

ruby-on-rails - 在使用 Selenium 运行 Cucumber 之前,我是否需要运行 Webrick?

c# - SQLite EXISTS参数无论记录是否存在都返回-1,C#

python - Null 处理程序在 python 日志记录中的用途是什么?

java - 为什么我们要检查是否启用了调试或日志错误?