我正在使用一个正在启动后台任务的闭源库,但我没有后台任务标识符...
...有人对我如何结束这个后台任务有任何好主意吗?
它总是运行完成,我经常收到这样的崩溃报告:
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
)}
谢谢
最佳答案
这是库中的一个错误,我得到了一个修复了的更高版本。似乎没有办法结束这项任务。
关于ios - endBackgroundTask 不带后台标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8344753/