OStack程序员社区-中国程序员成长平台

标题: ios - 应用程序关闭时没有崩溃警报 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 11:53
标题: ios - 应用程序关闭时没有崩溃警报

我在 AppStore 上有一个应用程序,我在两天前更新了它。在我检查过的所有手机上,它都运行良好,但我确实收到了一些用户的提示,即应用程序在打开后立即关闭而没有崩溃警报。 我检查了 Xcode 上的崩溃报告,发现了这个错误:\UIKit: __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 556 并看到它与 UI 相关,但我不确定那是应用程序关闭的原因是因为我没有更改版本之间的 UI,而且这也不是崩溃...... 我在代码上没有 exit(0)。

很抱歉,没有代码,版本之间的应用打开时没有任何变化(我只是添加了一个 QR 类,用户可以通过单击按钮打开)。

是否有人知道应用关闭(或立即关闭)的可能原因 到后台)没有警报?

编辑:我刚刚有一部手机遇到了这个问题。当我直接从我的计算机安装应用程序时,应用程序可以运行,当我从商店安装时,它会关闭......

编辑2: 感谢@Cy-4AH,这里是 logcat:

kernel[0] <Notice>: xpcproxy[7827] Container: /private/var/mobile/Containers/Data/Application/7E2AA7B7-E2B2-4B2A-A362-BF95D6DFF594 (sandbox)
 <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
 <Notice>: ReportCrash acting against PID 7827
 <Warning>: Attempt to read info_array in pid 7827 failed, address was 120045fe8
 <Warning>: Attempt to read info_array in pid 7827 failed, address was 120045fe8
 <Warning>: Attempt to read info_array in pid 7827 failed, address was 120045fe8
 <Warning>: Attempt to read info_array in pid 7827 failed, address was 120045fe8
 <Notice>: Formulating crash report for process TmcSystemsApp[7827]
com.apple.xpc.launchd[1] (UIKitApplication:com.tmc-systems.TmcSystemsApp[0x578a][7827]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
 <Error>: Not saving crash log because we have reached the limit for logs to store on disk.  Sync or otherwise clear logs from /var/mobile/Library/Logs/CrashReporter to save new logs.
 <Error>: Could not save crash report to disk!
 <Error>: Incident Identifier: DBBCA5F0-062B-4430-AFDA-03E4218DE37F
 <Error>: CrashReporter Key:   36ec2d0341c8d9e6a53e387d034dfa76962801d5
 <Error>: Hardware Model:      iPhone7,2
 <Error>: Process:             TmcSystemsApp [7827]
 <Error>: Path:                /private/var/mobile/Containers/Bundle/Application/9C394EDA-BC3A-4AE3-AD6F-E9D9A42D5F37/TmcSystemsApp.app/TmcSystemsApp
 <Error>: Identifier:          TmcSystemsApp
 <Error>: Version:             ???
 <Error>: Code Type:           ARM-64 (Native)
 <Error>: Parent Process:      launchd [1]
 <Error>: Date/Time:           2016-08-17 12:28:38.078 +0300
 <Error>: Launch Time:         2016-08-17 12:28:38.043 +0300
 <Error>: OS Version:          iOS 8.4.1 (12H321)
 <Error>: Report Version:      105
 <Error>: Exception Type:  EXC_BREAKPOINT (SIGTRAP)
 <Error>: Exception Codes: 0x0000000000000001, 0x0000000120019088
 <Error>: Triggered by Thread:  0
 <Error>: Dyld Error Message:
 <Error>:   Library not loaded: /System/Library/Frameworks/ContactsUI.framework/ContactsUI
 <Error>:   Referenced from: /private/var/mobile/Containers/Bundle/Application/9C394EDA-BC3A-4AE3-AD6F-E9D9A42D5F37/TmcSystemsApp.app/TmcSystemsApp
 <Error>:   Reason: image not found
 <Error>:   Dyld Version: 353.12
 <Error>: Binary Images:
 <Error>: 0x120018000 - 0x12003ffff dyld arm64  <dddc36a8e70636f7a9fea757477bf90b> /usr/lib/dyld
SpringBoard[54] <Warning>: Application 'UIKitApplication:com.tmc-systems.TmcSystemsApp[0x578a]' crashed.



Best Answer-推荐答案


如果它没有生成崩溃报告,那么您的应用程序已被系统关闭。这可能有几个原因:分配的内存过多,didStartApplication 太长。尝试在控制台日志中找出您的应用程序被系统关闭的原因。

关于ios - 应用程序关闭时没有崩溃警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38973250/






欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) Powered by Discuz! X3.4