【发布时间】:2011-12-01 16:28:11
【问题描述】:
我正在使用一个正在启动后台任务的闭源库,但我没有后台任务标识符...
...有人对我如何结束这个后台任务有什么好的想法吗?
它总是运行到完成,我经常收到这样的崩溃报告:
Application Specific Information:
THEAPP[245] has active assertions beyond permitted time:
{(
<SBProcessAssertion: 0xee35590> identifier: UIKitBackgroundCompletionTask process: THEAPP[245] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:245 preventSuspend preventIdleSleep ,
<SBProcessAssertion: 0xeed2a60> identifier: UIKitBackgroundCompletionTask process: THEAPP[245] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:245 preventSuspend preventIdleSleep ,
<SBProcessAssertion: 0xee24f00> identifier: UIKitBackgroundCompletionTask process: THEAPP[245] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:245 preventSuspend preventIdleSleep
)}
谢谢
【问题讨论】:
-
这听起来像是一个需要在库中修复的库错误。我不知道有什么方法可以获取该任务 ID。
标签: ios multithreading background crash