Has anyone been able to successfully use MusicCatalogSearchRequest in a playgrounds app?
I have configured my playground similar to a regular app: app id with automatic music token generation turned on, music access authorized within the app itself, but whenever I query MusicCatalogSearchRequest I get an error thrown with .developerTokenRequestFailed.
Considering musickit is restricted in the sim, it would not surprise me if it was the same in playgrounds but it would be super helpful if I could prototype with musickit in playgrounds 4!
Hello @nickfromsf,
There is no straightforward way to use Automatic Developer Token Generation for Apple Music API with MusicKit in a Swift Playground.
That's because Swift Playgrounds run in a special process managed by Xcode, and the bundle identifier of that process can't possibly match the bundle identifier of your app.
Feel free to file a ticket on Feedback Assistant explaining why you would find using MusicKit in a Swift Playground useful. This would help us to figure out when we could schedule some time in our upcoming roadmap to try and improve this aspect of the developer experience.
Thank you very much in advance.
Best regards,