firebase-ios-sdk: GDTTransformer Can't endBackgroundTask.
- Xcode version: Xcode 11.4 (11E146)
- Installation method: CocoaPods
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
Don’t know which component crash. We used pod to get firebase like this.
pod ‘FirebaseInstanceID’ pod ‘Firebase/Analytics’ pod ‘Firebase/RemoteConfig’ pod ‘Firebase/Crashlytics’ pod ‘Firebase/Performance’ pod ‘Firebase/InAppMessaging’
When my phone upgrade to iOS 14 Beta, and app enter background. Later it will crash. Crash log is
[BackgroundTask] Background task still not ended after expiration handlers were called: <_UIBackgroundTaskInfo: 0x2835e06c0>: taskID = 64, taskName = CCTLogWriter, creationTime = 64357 (elapsed = 0). This app will likely be terminated by the system. Call UIApplication.endBackgroundTask(_:) to avoid this. Message from debugger: Terminated due to signal 9
And when I use UIApplicationEndBackgroundTaskError() to debug where goes wrong, It breakpoint here.

Could you please check this method to see if the backgroundtask is closed?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (12 by maintainers)
Verrrrrrrrry sorry about late reply. This is the demo. Please change the keys in GoogleService-Info.plist first. Use Xcode 12.0 beta6 build and use iOS14 Device not simulator. If this log doesn’t appear, please switch front and back sometimes. It will appear. My app will have this log when I switch to the background for the first time
FBDemo.zip