Ios 没有背景标识符的endBackgroundTask
我使用的库是封闭源代码,正在启动后台任务,但我没有后台任务标识符 …有人对我如何结束这项背景任务有什么好主意吗 它总是运行到完成,我经常收到这样的崩溃报告:Ios 没有背景标识符的endBackgroundTask,ios,multithreading,background,crash,Ios,Multithreading,Background,Crash,我使用的库是封闭源代码,正在启动后台任务,但我没有后台任务标识符 …有人对我如何结束这项背景任务有什么好主意吗 它总是运行到完成,我经常收到这样的崩溃报告: Application Specific Information: THEAPP[245] has active assertions beyond permitted time: {( <SBProcessAssertion: 0xee35590> identifier: UIKitBackground
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
)}
谢谢这是库中的一个bug,我得到了一个更新的版本并进行了修复。似乎没有办法结束这项任务。这听起来像是一个库错误,需要在库中修复。我不知道如何获取任务id。