Background Assets undocumented error

I get this error in the latest Xcode 14.3 RC1 in 16.4 iPhone simulator:

Calling `startForegroundDownload:error:` with an `Essential` necessity is prohibited.

I found .isNecessity property on BADownload but it's get-only and I can't find any other documentation on this. This worked in the past and there are no docs. Any ideas?

Replies

This is covered in the new WWDC23 session: "What's new in Background Assets". The essential argument was added in 16.4 and true can only be passed from within the extension during an app-install or app-update.