"Can't end BackgroundTask" error message on iOS 13.0

I made new project on Xcode 11 beta 7 and just run app on simulator and go back to home screen.

Then debugger shows the message below, although I didn't implement codes related background task.


Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.


Has anyone else experienced this problem?

Answered by billylo in 412345022

Confirmed: This has been fixed in iOS 13.4 GM.

I'm having the same problem. Current OS and lastest version of Xcode.

I've the same issue in IOS 13.3. This warning message annoyed.

Same with iOS 13.3 and Xcode 11 with new single application project.

Same Issue still exist:
Xcode: 11.3.1

iPhone x: 13.3

When will Apple provide a fix or a workaround for this?!

Same Issue still exist:
Xcode: 11.3.1

iPhone x: 13.3


When will Apple provide a fix or a workaround for this? 😢

This seems to be a bug that will be fixed in ios 13.4. Here's the thread where I found the information (go to the last post of the thread):


https://github.com/firebase/firebase-ios-sdk/issues/4554

Accepted Answer

Confirmed: This has been fixed in iOS 13.4 GM.

This issue still not fixed. I created a framework in which I am submitting the BGProcessingTaskRequest upon appdidenterbackground notification. it complains about the Error Domain=BGTaskSchedulerErrorDomain Code=1. Ironically I built a sample app without framework it works fine in the Host App and was able to run the command to test the triggering of background process.

Issue still present on ios 15.4.1 (xcode 13.3.1)

"Can't end BackgroundTask" error message on iOS 13.0
 
 
Q