gpt4 book ai didi

ios - 我的应用程序在 Debug模式下完美运行,但在 ad hoc 模式下却不行

转载 作者:行者123 更新时间:2023-12-01 18:55:45 36 4
gpt4 key购买 nike

我的应用程序在 Debug模式下运行良好,模拟器或设备插入计算机,当我为临时生成应用程序并将其安装到设备中时,它以随机方式崩溃了很多。顺便说一句,该应用程序是用 Cordova 制作的,并且有后台任务(它是一个地理定位应用程序)

崩溃示例:

Exception Type:  00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 2

Application Specific Information:
<BKNewProcess: 0x1758f950; com.app; pid: 2675; hostpid: -1> has active assertions beyond permitted time:
{(
<BKProcessAssertion: 0x17692970> id: 2675-CA057A50-06BF-4BA1-9F0C-7641112B945E name: Called by MyApp, from unknown method process: <BKNewProcess: 0x1758f950; gbi.cro; pid: 2675; hostpid: -1> permittedBackgroundDuration: 180.000000 reason: finishTask owner pid:2675 preventSuspend preventIdleSleep preventSuspendOnSleep ,
<BKProcessAssertion: 0x17697c30> id: 2675-A03FFC10-1D0A-4BDC-BF64-61358346530E name: Called by MyApp, from unknown method process: <BKNewProcess: 0x1758f950; gbi.cro; pid: 2675; hostpid: -1> permittedBackgroundDuration: 180.000000 reason: finishTask owner pid:2675 preventSuspend preventIdleSleep preventSuspendOnSleep
)}

线程2是:
Thread 2 name:  com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x30ae3518 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30ae330c mach_msg + 36
2 CoreFoundation 0x227d1596 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x227cfb5c __CFRunLoopRun + 1012
4 CoreFoundation 0x2271cb2c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2271c93e CFRunLoopRunInMode + 102
6 CFNetwork 0x222d178a +[NSURLConnection(Loader) _resourceLoadLoop:] + 482
7 Foundation 0x2351e996 __NSThread__main__ + 1114
8 libsystem_pthread.dylib 0x30b75e64 _pthread_body + 136
9 libsystem_pthread.dylib 0x30b75dd6 _pthread_start + 114
10 libsystem_pthread.dylib 0x30b73b80 thread_start + 4

我有整个踪迹,但它太大了,所以如果有人需要一些信息,请告诉我。

知道发生了什么吗?

谢谢

最佳答案

这是你的线索:0x000000008badf00d。进入 Xcode 6 文档,然后输入 8badf00d。有 3 个技术说明涵盖了它。你被看门狗定时器搞砸了,你有一个没有返回的阻塞线程,它需要很长时间才能启动、终止或允许系统服务。通常是主线程上的同步网络尝试。

关于ios - 我的应用程序在 Debug模式下完美运行,但在 ad hoc 模式下却不行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27299698/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com