【问题标题】:endBackgroundTask without the background identifier没有背景标识符的 endBackgroundTask
【发布时间】: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


【解决方案1】:

这是库中的一个错误,我得到了一个修复的更高版本。似乎没有办法结束这项任务。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-16
    • 2019-06-14
    • 1970-01-01
    • 1970-01-01
    • 2021-09-22
    • 2015-06-27
    • 1970-01-01
    • 2014-07-15
    相关资源
    最近更新 更多