I have the same problem with a minimal HLS download SwiftUI test app on an M1 iMac, it's just the basic code from the "Media Programming Guide".
The call to:
let downloadSession = AVAssetDownloadURLSession(configuration: configuration,
assetDownloadDelegate: self,
delegateQueue: OperationQueue.main)
is causing the following messages to appear in the console window:
Background URLSession adopters are required to have com.apple.application-identifier entitlement.
The same code in a command line app gives the following message:
Background URLSession adopters are required to have a bundle identifier. If you are developing a daemon, please enable CREATE_INFOPLIST_SECTION_IN_BINARY build setting.
There is a bundle identifier for the console app's project.