I am losing many days looking for the piece of code or infrastructure that caused this warning in the debug console. Cannot complete BackgroundTask: there is no background task with identifier 2 (0x2), or it may already be completed. Break in UIApplicationEndBackgroundTaskError () for debugging.
Finally, I created an empty Single View App project. Only the code generated by Xcode, I run the application on the simulator, put it in the background and see the same warning. So I can say that this is a problem of iOS 13. I hope that Apple fixes it quickly, because in Crashlytics I found some failure in my application caused by this.
Francesco ceravolo
source share