我的新版 iOS 应用程序仅在从应用程序商店加载时在加载时崩溃

编程入门 行业动态 更新时间:2024-10-27 18:19:36
本文介绍了我的新版 iOS 应用程序仅在从应用程序商店加载时在加载时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我的应用程序只有在我将其加载到应用程序商店后才会崩溃.

My app crash only on after I loaded it to the app store.

一些背景,我已经在多个物理设备上通过试飞测试了该应用程序.该应用程序不会在所有设备上崩溃,首先在设备上安装工作正常(从未安装过该应用程序的设备).在我测试过的大多数设备上安装该应用程序之前安装在导致崩溃的设备上.即使我首先从设备中删除了该应用程序,然后从应用程序商店安装它,也会发生这种情况.

Some background, I have tested the app with test flight on multiple physical devices. The app doesn't crash on all devices, first install on a device works fine ( a device that never had the app). Install on a device that had the app before cause the crash on most devices I tested with. That happens even if I first removed the app from the device, and then installed it from the app store.

还有一件事是在设备上发生了崩溃,从应用商店安装时,它首先安装了旧版本,然后让我更新到新版本.在它没有崩溃的设备上,它直接加载了新版本(无需先安装旧版本).

One more thing is that on the devices the crash happened, when installing from the app store it first installed the old version and then allowed me to update to the new version. On the devices it didn't crash it loaded the new version directly (without installing first the old version).

如果有任何如何解决此问题的想法,以及如何在我的开发/测试环境中复制该问题的想法,我们将不胜感激.

Any idea how to resolve this would be highly appreciated, and also ideas how to replicate the issue in my development / test environment.

以下是其中一台设备的崩溃日志:

Below is the crash log from one of the devices:

Incident Identifier: 2F05957D-D4B0-49A0-9DEC-9F93AC008ED7
CrashReporter Key:   0dcfb6f747b264afdb9bc565deb821964c811b36
Hardware Model:      iPhone5,1
Process:         SlimNavigator [10283]
Path:            /var/mobile/Applications/C4110616-BE4C-4433-9FB9-C43F042D4CCA/SlimNavigator.app/SlimNavigator
Identifier:      SlimNavigator
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2013-07-14 20:17:22.268 -0700
OS Version:      iOS 6.1.4 (10B350)
Report Version:  104

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

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   SlimNavigator   0x0010ad46 +[NSHTTPCookieStorage(DeleteForURL) deleteCookiesForURL:] (NSHTTPCookieStorage+DeleteForURL.m:20)
1   dyld            0x2ff076c0 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 16
2   dyld            0x2ff04a36 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 382
3   dyld            0x2ff04870 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 36
4   dyld            0x2fefbd0e dyld::initializeMainExecutable() + 174
5   dyld            0x2fefe85e dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 1802
6   dyld            0x2fefb32c dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 604
7   dyld            0x2fefb064 _dyld_start + 60

Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000001    r1: 0x2fd8fd3c      r2: 0x00000000      r3: 0x2fd8fd68
r4: 0x000000a5    r5: 0x00000000      r6: 0x0010ad55      r7: 0x2fd8eb18
r8: 0x2ff1d674    r9: 0x0000a100     r10: 0x00000000     r11: 0x00000001
ip: 0x0000a100    sp: 0x2fd8eae0      lr: 0x2ff075b5      pc: 0x0010ad46
cpsr: 0x40000030

Binary Images:
0x71000 -   0x20bfff +SlimNavigator armv7  <65ab2d7c06c932f6b3925448d72d95bf> /var/mobile/Applications/C4110616-BE4C-4433-9FB9-C43F042D4CCA/SlimNavigator.app/SlimNavigator
0x2fefa000 - 0x2ff1afff  dyld armv7s  <67efe80b9d863d6bb30fe51e6e17b070> /usr/lib/dyld
0x304d9000 - 0x305bffff  AVFoundation armv7s  <56f22385ccb73e31863f1fa9e0b621dd> /System/Library/Frameworks/AVFoundation.framework/AVFoundation

推荐答案

感谢大家的回答.问题解决了,通过两个更改,我添加了 1. -all_load 标志到链接器以加载发生崩溃的有问题的库,2. 删除对崩溃的库方法的可能调用.我仍然不确定为什么在设备上运行发布版本时问题不会自行显现,并且只发生在应用商店的版本中.

Thank you everyone for your answers. Problem solved, with two changes I added 1. -all_load flag to linker to load the problematic library where the crash happened, 2. Remove the possible call to the library method that crashed. I'm still not sure why it the issue don't manifest it self when running a release build on a device and only happen with the build from the app store.

根据答案和我的经验,我可以给出的最相关的建议是比较您的调试和发布构建设置",并尝试更改它们以匹配发布设置(优化级别"是第一个尝试).

The most relevant advice I can give based on the answers and my experience with this, is compare your debug and release "build setting" and try to change them to match the release setting ("optimization level" is the first one to try).

这篇关于我的新版 iOS 应用程序仅在从应用程序商店加载时在加载时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 09:29:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/909114.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   加载   新版   商店   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!