ios - 应用程序关闭时没有崩溃警报
<p><p>我在 AppStore 上有一个应用程序,我在两天前更新了它。在我检查过的所有手机上,它都运行良好,但我确实收到了一些用户的提示,即应用程序在打开后立即关闭而没有崩溃警报。
我检查了 Xcode 上的崩溃报告,发现了这个错误:<code>\UIKit: __45-_block_invoke + 556</code> 并看到它与 UI 相关,但我不确定那是应用程序关闭的原因是因为我没有更改版本之间的 UI,而且这也不是崩溃......
我在代码上没有 exit(0)。</p>
<p>很抱歉,没有代码,版本之间的应用打开时没有任何变化(我只是添加了一个 QR 类,用户可以通过单击按钮打开)。</p>
<p>是否有人知道应用关闭(或立即关闭)的可能原因
到后台)没有警报?</p>
<p>编辑:我刚刚有一部手机遇到了这个问题。当我直接从我的计算机安装应用程序时,应用程序可以运行,当我从商店安装时,它会关闭......</p>
<p>编辑2:
感谢@Cy-4AH,这里是 logcat:</p>
<pre><code>kernel <Notice>: xpcproxy 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
com.apple.xpc.launchd (UIKitApplication:com.tmc-systems.TmcSystemsApp) <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
<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
<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 <Warning>: Application 'UIKitApplication:com.tmc-systems.TmcSystemsApp' crashed.
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>如果它没有生成崩溃报告,那么您的应用程序已被系统关闭。这可能有几个原因:分配的内存过多,didStartApplication 太长。尝试在控制台日志中找出您的应用程序被系统关闭的原因。</p></p>
<p style="font-size: 20px;">关于ios - 应用程序关闭时没有崩溃警报,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/38973250/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/38973250/
</a>
</p>
页:
[1]