应用程序在 ZKFileArchive 上崩溃

发布于 2024-10-22 03:45:40 字数 1623 浏览 1 评论 0原文

我构建了我的应用程序来下载一些大小从 10 MB 到 25 MB 的 zip 文件。 下载到本地文档文件夹后,我触发 ZKFileArchive 方法将其解压缩到同一文件夹。

在调试模式(设备/模拟器)中一切正常。当我创建一个要安装的版本时,应用程序在到达

ZKFileArchive *archive = [ZKFileArchive archiveWithArchivePath:filePath];

启用 NSZombie 时崩溃,它会向我抛出以下错误:

  Thread 10 Crashed:
  0   Hoppr iOS                         0x0003318c +[ZKFileArchive archiveWithArchivePath:] (ZKFileArchive.m:185)
  1   Hoppr iOS                         0x00004092 -[LaunchDownload inflateFile:withDict:] (LaunchDownload.m:348)
  2   Foundation                        0x33fbeb8a 0x33fb3000 + 48010
  3   Foundation                        0x33fb7b90 0x33fb3000 + 19344
  4   libSystem.B.dylib                 0x32d27b44 0x32c9c000 + 572228
  5   libSystem.B.dylib                 0x32d197a4 0x32c9c000 + 513956

这可能是内存问题吗?它有时会向我抛出 1 级内存警告,但正如我一直在阅读的那样,这应该不会引起太多问题。

有什么想法吗? 提前致谢!

[编辑]

该日志文件的顶部:

  Incident Identifier: 1BEC1CCB-AD95-4A06-8F4F-3DA1A2A4F18D
  CrashReporter Key:   36fcd8536ee68a7e6b261ba23f2ec090b98d388e
  Hardware Model:      iPod2,1
  Process:         Hoppr iOS [1340]
  Path:            /var/mobile/Applications/47587D8A-AE7E-4C26-9C23-9394DE268E69/Hoppr iOS.app/Hoppr iOS
  Identifier:      Hoppr iOS
  Version:         ??? (???)
  Code Type:       ARM (Native)
  Parent Process:  launchd [1]

  Date/Time:       2011-03-16 15:49:22.041 +0100
  OS Version:      iPhone OS 4.2.1 (8C148)
  Report Version:  104

  Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
  Exception Codes: 0x00000001, 0xe92d0d00
  Crashed Thread:  10

I've build my app to download a few zip-files with sizes from 10 up to 25 MB.
After download to the local documents folder I fire the ZKFileArchive method to unzip to that same folder.

In debug modus (device/simulator) all works fine. When I create a release which I install, the app crashes when it reaches

ZKFileArchive *archive = [ZKFileArchive archiveWithArchivePath:filePath];

With NSZombie enabled it throws me this:

  Thread 10 Crashed:
  0   Hoppr iOS                         0x0003318c +[ZKFileArchive archiveWithArchivePath:] (ZKFileArchive.m:185)
  1   Hoppr iOS                         0x00004092 -[LaunchDownload inflateFile:withDict:] (LaunchDownload.m:348)
  2   Foundation                        0x33fbeb8a 0x33fb3000 + 48010
  3   Foundation                        0x33fb7b90 0x33fb3000 + 19344
  4   libSystem.B.dylib                 0x32d27b44 0x32c9c000 + 572228
  5   libSystem.B.dylib                 0x32d197a4 0x32c9c000 + 513956

Could this be a memory issue? From times to times it throws me a level 1 memory warning, but as I've been reading this should not cause too much problems.

Any ideas?
Thanks in advance!

[EDIT]

The top of this logfile:

  Incident Identifier: 1BEC1CCB-AD95-4A06-8F4F-3DA1A2A4F18D
  CrashReporter Key:   36fcd8536ee68a7e6b261ba23f2ec090b98d388e
  Hardware Model:      iPod2,1
  Process:         Hoppr iOS [1340]
  Path:            /var/mobile/Applications/47587D8A-AE7E-4C26-9C23-9394DE268E69/Hoppr iOS.app/Hoppr iOS
  Identifier:      Hoppr iOS
  Version:         ??? (???)
  Code Type:       ARM (Native)
  Parent Process:  launchd [1]

  Date/Time:       2011-03-16 15:49:22.041 +0100
  OS Version:      iPhone OS 4.2.1 (8C148)
  Report Version:  104

  Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
  Exception Codes: 0x00000001, 0xe92d0d00
  Crashed Thread:  10

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

强者自强 2024-10-29 03:45:40

您链接的框架看起来不是为目标平台构建的。 非法指令意味着二进制文件存在严重错误。

The framework you are linking looks like it was not built for the target platform. Illegal instruction means there is something very wrong with the binary.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文