0

我开发了一个应用程序,最近我在苹果商店推出了它。当我从 iTunes 下载应用程序并启动它时,它会在从 Web 服务检索数据时崩溃。如果我从 sdk 安装它,它绝对可以正常工作。

请让我知道可能是什么问题?

提前致谢!!

Crash Log

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

Date/Time:       2011-03-02 18:15:46.353 -0800
OS Version:      iPhone OS 4.2.1 (8C148)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xc9220021
Crashed Thread:  0

Thread 0 Crashed:
0   libobjc.A.dylib                 0x33479466 0x33476000 + 13414
1   CoreFoundation                  0x33a5ebb8 0x33a20000 + 256952
2   Foundation                      0x3363978e 0x33619000 + 133006
3   CoreFoundation                  0x33a767d6 0x33a20000 + 354262
4   CoreFoundation                  0x33a485b0 0x33a20000 + 165296
5   CoreFoundation                  0x33a47e54 0x33a20000 + 163412
6   CoreFoundation                  0x33a47c80 0x33a20000 + 162944
7   CoreFoundation                  0x33a47b88 0x33a20000 + 162696
8   GraphicsServices                0x33b0e4a4 0x33b0a000 + 17572
9   GraphicsServices                0x33b0e550 0x33b0a000 + 17744
10  UIKit                           0x32099322 0x32062000 + 226082
11  UIKit                           0x32096e8c 0x32062000 + 216716
12  Bagainfly                       0x000020de 0x1000 + 4318
13  Bagainfly                       0x00002074 0x1000 + 4212

Thread 1:
0   libSystem.B.dylib               0x33b89974 0x33b5c000 + 186740
1   libSystem.B.dylib               0x33c33704 0x33b5c000 + 882436
2   libSystem.B.dylib               0x33c33174 0x33b5c000 + 881012
3   libSystem.B.dylib               0x33c32b98 0x33b5c000 + 879512
4   libSystem.B.dylib               0x33bd724a 0x33b5c000 + 504394
5   libSystem.B.dylib               0x33bcf970 0x33b5c000 + 473456

Thread 2:
0   libSystem.B.dylib               0x33b5d268 0x33b5c000 + 4712
1   libSystem.B.dylib               0x33b5f354 0x33b5c000 + 13140
2   CoreFoundation                  0x33a48648 0x33a20000 + 165448
3   CoreFoundation                  0x33a47ed2 0x33a20000 + 163538
4   CoreFoundation                  0x33a47c80 0x33a20000 + 162944
5   CoreFoundation                  0x33a47b88 0x33a20000 + 162696
6   WebCore                         0x304df124 0x30428000 + 749860
7   libSystem.B.dylib               0x33bd6886 0x33b5c000 + 501894
8   libSystem.B.dylib               0x33bcba88 0x33b5c000 + 457352

Thread 3:
0   libSystem.B.dylib               0x33b5d268 0x33b5c000 + 4712
1   libSystem.B.dylib               0x33b5f354 0x33b5c000 + 13140
2   CoreFoundation                  0x33a48648 0x33a20000 + 165448
3   CoreFoundation                  0x33a47ed2 0x33a20000 + 163538
4   CoreFoundation                  0x33a47c80 0x33a20000 + 162944
5   CoreFoundation                  0x33a47b88 0x33a20000 + 162696
6   Foundation                      0x336465f6 0x33619000 + 185846
7   Foundation                      0x33624192 0x33619000 + 45458
8   Foundation                      0x3361d242 0x33619000 + 16962
9   libSystem.B.dylib               0x33bd6886 0x33b5c000 + 501894
10  libSystem.B.dylib               0x33bcba88 0x33b5c000 + 457352

Thread 4:
0   libSystem.B.dylib               0x33b8168c 0x33b5c000 + 153228
1   CoreFoundation                  0x33a7f662 0x33a20000 + 390754
2   libSystem.B.dylib               0x33bd6886 0x33b5c000 + 501894
3   libSystem.B.dylib               0x33bcba88 0x33b5c000 + 457352

Thread 5:
0   libSystem.B.dylib               0x33bcba6c 0x33b5c000 + 457324
1   libSystem.B.dylib               0x33b8a06a 0x33b5c000 + 188522
2   libsqlite3.dylib                0x3375ca16 0x33748000 + 84502
3   libsqlite3.dylib                0x3374a88a 0x33748000 + 10378
4   libsqlite3.dylib                0x33754ffa 0x33748000 + 53242
5   libsqlite3.dylib                0x33760f40 0x33748000 + 102208
6   libsqlite3.dylib                0x33774c9c 0x33748000 + 183452
7   libsqlite3.dylib                0x33788dee 0x33748000 + 265710
8   libsqlite3.dylib                0x33749de4 0x33748000 + 7652
9   libsqlite3.dylib                0x33749f6a 0x33748000 + 8042
10  GMM                             0x330ff524 0x330fd000 + 9508
11  GMM                             0x330ff57c 0x330fd000 + 9596
12  GMM                             0x3313743e 0x330fd000 + 238654
13  MapKit                          0x31bf48ca 0x31be4000 + 67786
14  MapKit                          0x31bf480a 0x31be4000 + 67594
15  CoreFoundation                  0x33a767d6 0x33a20000 + 354262
16  CoreFoundation                  0x33a485b0 0x33a20000 + 165296
17  CoreFoundation                  0x33a47e54 0x33a20000 + 163412
18  CoreFoundation                  0x33a47c80 0x33a20000 + 162944
19  CoreFoundation                  0x33a47b88 0x33a20000 + 162696
20  MapKit                          0x31be8906 0x31be4000 + 18694
21  MapKit                          0x31be87ea 0x31be4000 + 18410
22  libSystem.B.dylib               0x33bd6886 0x33b5c000 + 501894
23  libSystem.B.dylib               0x33bcba88 0x33b5c000 + 457352

Thread 6:
0   libSystem.B.dylib               0x33bd59f0 0x33b5c000 + 498160
1   libSystem.B.dylib               0x33b8a7ec 0x33b5c000 + 190444
2   libSystem.B.dylib               0x33b8a3d2 0x33b5c000 + 189394
3   QuartzCore                      0x3412e5dc 0x340f9000 + 218588
4   QuartzCore                      0x340fb01a 0x340f9000 + 8218
5   libSystem.B.dylib               0x33bd6886 0x33b5c000 + 501894
6   libSystem.B.dylib               0x33bcba88 0x33b5c000 + 457352

Thread 7:
0   libSystem.B.dylib               0x33b5d294 0x33b5c000 + 4756
1   libSystem.B.dylib               0x33b8b026 0x33b5c000 + 192550
2   libSystem.B.dylib               0x33b5f258 0x33b5c000 + 12888
3   libobjc.A.dylib                 0x3347a5b8 0x33476000 + 17848
4   Foundation                      0x33630782 0x33619000 + 96130
5   Foundation                      0x336303f4 0x33619000 + 95220
6   Foundation                      0x3363007a 0x33619000 + 94330
7   MapKit                          0x31c10ef0 0x31be4000 + 184048
8   MapKit                          0x31c10e70 0x31be4000 + 183920
9   GMM                             0x33137d66 0x330fd000 + 240998
10  GMM                             0x330fe768 0x330fd000 + 5992
11  Foundation                      0x3364b806 0x33619000 + 206854
12  Foundation                      0x3364b788 0x33619000 + 206728
13  CFNetwork                       0x30ca747e 0x30c98000 + 62590
14  CFNetwork                       0x30c9c1f2 0x30c98000 + 16882
15  CFNetwork                       0x30c9c0e4 0x30c98000 + 16612
16  CFNetwork                       0x30c9c096 0x30c98000 + 16534
17  CFNetwork                       0x30c9c014 0x30c98000 + 16404
18  CFNetwork                       0x30c9bf92 0x30c98000 + 16274
19  CoreFoundation                  0x33a767d6 0x33a20000 + 354262
20  CoreFoundation                  0x33a485b0 0x33a20000 + 165296
21  CoreFoundation                  0x33a47e54 0x33a20000 + 163412
22  CoreFoundation                  0x33a47c80 0x33a20000 + 162944
23  CoreFoundation                  0x33a47b88 0x33a20000 + 162696
24  MapKit                          0x31bf327e 0x31be4000 + 62078
25  Foundation                      0x33624192 0x33619000 + 45458
26  Foundation                      0x3361d242 0x33619000 + 16962
27  libSystem.B.dylib               0x33bd6886 0x33b5c000 + 501894
28  libSystem.B.dylib               0x33bcba88 0x33b5c000 + 457352

Thread 0 crashed with ARM Thread State:
    r0: 0x001504a0    r1: 0x323738ef      r2: 0x303b83f2      r3: 0x0000004c
    r4: 0x33a59245    r5: 0xc9220021      r6: 0x3e4f4b74      r7: 0x2fdfec0c
    r8: 0x303b83f2    r9: 0x2fdfea50     r10: 0x00000000     r11: 0x0013971c
    ip: 0x3e4efab4    sp: 0x2fdfebec      lr: 0x31c10f53      pc: 0x33479466
  cpsr: 0x000f0030
4

2 回答 2

2

当您说在 AppleStore 中推出时,您是指来自 iTunes 还是您的意思是它已经由 Apple 发布?

如果您的意思是来自 iTunes 并且是临时构建,您是否检查过您的 entitlements.plist? 关于权利的另一个stackoverflow问题

如果它确实获得批准并且在 AppStore 上,您可以查看使用此处的技术生成的崩溃日志。

如何获取崩溃日志

另一种可能性是,如果您是第一次与真实设备连接并且连接速度较慢或断断续续,并且您正在使用同步启动,您可能会发现 IOS 系统正在杀死您的应用程序,因为它需要超过 10 秒才能响应所以假设它已经崩溃了。

不确定这是否会有所帮助,因为我们真的可以通过更多关于崩溃的细节来做。例如,它是否在模拟器中 100% 工作,它是否在 Xcode 中启动,它是调试/发布/临时/分发构建,您是否尝试过 NSLog 消息来缩小崩溃的范围?

于 2011-03-04T11:27:14.060 回答
0

希望您保留了您提交给 iTunes 的特定构建的 dSym 文件。

然后,您应该能够在 Xcode 中打开崩溃日志并让它象征崩溃日志行,例如

Bagainfly 0x000020de 0x1000 + 4318
Bagainfly 0x00002074 0x1000 + 4212

在你的代码中有意义的东西。希望它能将您指向应用程序中崩溃的确切行。

然而,另一个问题是您只看到了冰山一角。Apple 提供给您的崩溃报告经过严格过滤。因此,如果您在开发者帐户中看到崩溃报告,则意味着您的用户确实受到问题的严重打击。

我可以推荐一个 github 项目,它允许您的用户直接向您发送崩溃报告。这样,当事情开始出错时,您会立即收到通知,并希望在您的用户开始放弃您的应用程序之前收到通知。你可以在这里获取代码:http: //github.com/TheRealKerni/CrashReporterDemo

于 2011-03-04T12:39:04.120 回答