Had to download the iOS 15 "restore image" for my device and then in the Finder doing the "option" key thing while clicking "Restore iphone..." was able to select the ipsw and finally install iOS 15. What a pain in the ***. Apple: Can you guys sit down and work out a way to provide useful error messages? It's insane how many times things just fail to work with no helpful errors.
Post
Replies
Boosts
Views
Activity
I tried running my app on an iOS 15 device. I now get a user token request failure.
I am calling MusicKit.MusicAuthorization.request() which triggers an alert, and once accepted the result is .authorized I run the search.
let request = MusicCatalogSearchRequest(term: "hello", types: [Song.self])
do {
let response = try await request.response()
searchResults = Array(response.songs)
print("RESPONSE: \(response)")
} catch let error {
NSLog("error: \(error)")
}
The full error is:
[DataRequesting] Failed retrieving MusicKit tokens: Error Domain=ICErrorDomain Code=-8102 "Failed to fetch user token." UserInfo={NSDebugDescription=Failed to fetch user token., NSUnderlyingError=0x281932670 {Error Domain=ICErrorDomain Code=-7007 "Not getting music user token because privacy acknowledgement is required." UserInfo={NSDebugDescription=Not getting music user token because privacy acknowledgement is required.}}}. Throwing .userTokenRequestFailed.
2021-06-17 19:53:23.743941-0400 Radio[588:41570] [DataRequesting] Failed retrieving tokens for MusicDataRequest.Context(url: https://api.music.apple.com/v1/catalog/ca/search?term=hello&types=songs&omit%5Bresource%5D=autos). Error = .userTokenRequestFailed.
I have the plist values kTCCServiceMediaLibrary and NSAppleMusicUsageDescription set, but I'm not sure what "Not getting music user token because privacy acknowledgement is required." is referring to. Any ideas?