When calling:
letcloudServiceController = SKCloudServiceController()
It returns:
[core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9"
SSAccountStore: Failed to fetch the backing accounts. error = Error Domain=com.apple.accounts Code=9
SSAccountStore: Unable to get the local account. error = Error Domain=SSErrorDomain Code=100 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
I use it on my device.
My Music ID & key is created. I also use a valid developer token, tested via REST API.
And the app is created on App Store Connect.
Thanks for your help.