SwiftData with CloudKit Error: Error updating background task request

Hi,

Overview

  • I have a SwiftData project which automatically syncs with CloudKit.
  • When I run the app, I see the following error in Xcode logs.
Error updating background task request: Error Domain=BGSystemTaskSchedulerErrorDomain Code=3 "(null)"

My attempt

I can enable Background processing (under Signing & Capabilities > Background modes), but I don't know the BGTaskSchedulerPermittedIdentifiers to add in the Info.plist

Questions

  1. How can I resolve this?
  2. If I should enable background processing, what are the BGTaskSchedulerPermittedIdentifiers to add in Info.plist?

@DTS Engineer They had asked me to close the bug as it was a duplicate of FB22670054. So I have closed FB22670187

@newwbee This occurs solely to prevent duplication, as my request is to avoid submitting the same bug. Thanks

Albert
  Worldwide Developer Relations.

SwiftData with CloudKit Error: Error updating background task request
 
 
Q