Post

Replies

Boosts

Views

Activity

requestUserToken SKErrorDomain Code=9 "The latest Apple privacy policy has yet to be acknowledged"
I'm working on an app that communicates with the Apple Music API. I'm attempting to run the app on a simulator (ios 14.2). When I run this code: SKCloudServiceController().requestUserToken(forDeveloperToken: developerToken) { (receivedToken, error) in       print(receivedToken ?? "No Token")       print(error)       guard error == nil else { return }       // the rest of the code that never gets called ...     } It prints this error: Error Domain=SKErrorDomain Code=9 "The latest Apple privacy policy has yet to be acknowledged" UserInfo={NSLocalizedDescription=The latest Apple privacy policy has yet to be acknowledged} And obviously I get no user token. How do I Acknowledge the latest Apple privacy policy? I am signed in with my apple Id in my simulator. I can use apple music on my regular iPhone and I can use Apple Music on OS X without Apple asking me to acknowledge Privacy Policy. Is there some way of provisioning user data on the app for testing purposes?
4
0
2.3k
Dec ’20