I've noticed that this occurs only when there are albums with multiple artists.
Instead of just [MPMediaQuery artistQuery]
, the following pretends this behavior:
MPMediaQuery *artistsQuery = [MPMediaQuery artistsQuery];
artistsQuery.groupingType = MPMediaGroupingAlbumArtist;
NSArray *collections = [artistQuery collection];