iOS 应用程序在设备上首次加载时崩溃

发布于 2025-01-05 08:11:06 字数 1279 浏览 5 评论 0原文

XCode 4.2 与 iOS 5

我的应用程序只会在调试时在真实设备上第一次加载时崩溃。如果我在模拟器中运行它,它总是有效。每次在设备上第一次使用后,它总是工作正常。

一旦我从手机中删除该应用程序,下次启动该应用程序将崩溃 EXC_BAD_ACCESS,但即使在调试时我也无法判断发生这种情况的位置。

由于这个原因,应用程序无法提交到应用程序商店。我只能说它发生在对话框之前:“MyApp”想要使用您当前的位置

然后当我重新启动它时,它工作正常。

这是崩溃日志,但它似乎没有告诉我们太多信息:

Incident Identifier: 2E1B994F-6783-4C3E-8463-F21B4AD0BE9D
CrashReporter Key:   d4365cbed4fa63fb6536c6c6925416357a62e6e7
Hardware Model:      iPhone3,1
Process:         MyApp [4205]
Path:            MyApp
Identifier:      MyApp
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-02-12 11:09:17.223 -0800
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x35e85f30
Highlighted Thread:  0

Backtrace not available

Unknown thread crashed with ARM Thread State:
    r0: 0x00000000    r1: 0x007f3000      r2: 0x60000000      r3: 0xfffff000
    r4: 0x60000000    r5: 0x007f3000      r6: 0x00000907      r7: 0x2fdfe780
    r8: 0x3eac9690    r9: 0x31bcc104     r10: 0x00000106     r11: 0x00000080
    ip: 0xfffffff3    sp: 0x2fdfe774      lr: 0x35e864d9      pc: 0x35e85f30
  cpsr: 0x200f0010

二进制图像描述不可用

XCode 4.2 with iOS 5

My app will only crash on the first load on a real device while debugging. If I run it in the simulator, it always works. And every time after the first time on the device itself, it always works fine.

Once I delete the app from the phone, the next launch of the app will crash EXC_BAD_ACCESS but I cannot tell where this is happening even while debugging.

The app failed submission to the app store for this reason. All I can say is that it happens RIGHT before the dialog: "MyApp" Would like to Use Your Current Location

Then when I re-launch it, it works fine.

Here is the crash log, but it doesnt seem to tell us much:

Incident Identifier: 2E1B994F-6783-4C3E-8463-F21B4AD0BE9D
CrashReporter Key:   d4365cbed4fa63fb6536c6c6925416357a62e6e7
Hardware Model:      iPhone3,1
Process:         MyApp [4205]
Path:            MyApp
Identifier:      MyApp
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-02-12 11:09:17.223 -0800
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x35e85f30
Highlighted Thread:  0

Backtrace not available

Unknown thread crashed with ARM Thread State:
    r0: 0x00000000    r1: 0x007f3000      r2: 0x60000000      r3: 0xfffff000
    r4: 0x60000000    r5: 0x007f3000      r6: 0x00000907      r7: 0x2fdfe780
    r8: 0x3eac9690    r9: 0x31bcc104     r10: 0x00000106     r11: 0x00000080
    ip: 0xfffffff3    sp: 0x2fdfe774      lr: 0x35e864d9      pc: 0x35e85f30
  cpsr: 0x200f0010

Binary images description not available

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文