Ios Can';t end BackgroundTask:不存在标识符为的后台任务,或者该任务可能已结束。中断UIApplicationEndBackgroundTaskError()

Ios Can';t end BackgroundTask:不存在标识符为的后台任务,或者该任务可能已结束。中断UIApplicationEndBackgroundTaskError(),ios,iphone,xcode,cordova,background-process,Ios,Iphone,Xcode,Cordova,Background Process,我不知道为什么,但在重置应用程序后会发生此错误-在第一次启动时,一切都正常,但如果关闭并再次启动应用程序,它会在启动屏幕和Xcode上出现此错误: Can't end BackgroundTask: no background task exists with identifier %lu (0x%lx), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug 附图:

我不知道为什么,但在重置应用程序后会发生此错误-在第一次启动时,一切都正常,但如果关闭并再次启动应用程序,它会在启动屏幕和Xcode上出现此错误:

Can't end BackgroundTask: no background task exists with identifier %lu (0x%lx), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug
附图:

我正在使用cordova background geolocation和cordova background mode,但是在第一个屏幕部分中仍然没有设置geolocation,背景模式可能是导致问题的原因

在Xcode中,我启用了如下图像:

我刚刚从Mac上的AppStore将Xcode版本更新为最新版本