MusicKit: Error when performing a MusicLibrarySectionedRequest using some MusicLibraryRequestable types

When making a library sectioned request, some MusicLibraryRequestable types used result in an MusicKit.MusicLibraryRequestError being thrown.

When a Playlist is used as the MusicLibrarySectionRequestable type, no other MusicLibraryRequestable type than Track can be used for the request. For others, Artist & Genre cannot be used.

Is there a way to work around this issue? The (seemingly) equivalent functionality in MediaPlayer (MPMediaQuery and MPMediaGrouping) was very consistent and reliable.

Full error info: MusicKit.MusicLibraryRequestError.invalidType, The operation couldn’t be completed. (MusicKit.MusicLibraryRequestError error 1.)

Device and OS: iPhone 13 Pro, iOS 17.2.1

MusicKit: Error when performing a MusicLibrarySectionedRequest using some MusicLibraryRequestable types
 
 
Q