How to get MusicKit working with Swift 5+ in iOS 14+?

Does anyone have a step-by-step "official" guide to getting MusicKit working with iOS inside Xcode when developing an app in Swift?
Anyone get this question?

Hello @advancecoder,

I think you'll find the new MusicKit framework in iOS 15 to be a great way to integrate your app with MusicKit. It's a Swift-based framework, and is built from the ground up to be used in conjunction with SwiftUI.

Feel free to check it out tomorrow in our new WWDC session: Meet MusicKit for Swift.

We also offer a sample app showing how you can use MusicKit in a SwiftUI based app.

I hope this helps.

Best regards,

Hi @JoeKun,

The sample app given doesn't work without major changes. It has 24 issues including multiple warnings and swift compiler errors. Do you have another example that works without any changes?

Hello @advancecoder,

An updated version of the sample app is in the works. I hope to be able to publish it very soon.

You can find more information about it in this other thread.

Best regards,

Hello @advancecoder,

The updated version of our sample app for MusicKit is available here.

This version should work just fine with the iOS 15 beta 5 SDK.

I hope this helps.

Best regards,

How to get MusicKit working with Swift 5+ in iOS 14+?
 
 
Q