There is no need to add a MusicKit Capability in Xcode. You only have to provide a NSAppleMusicUsageDescription in your Info.plist.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: