I am having the same problem. Some of the items do not have artwork, and this crashes on the first one of those:
`func EnumerateValuesCrash() {
let propertiesSet: Set<String> = [
MPMediaItemPropertyTitle,
MPMediaItemPropertyArtist
]
let query = MPMediaQuery.songs()
if let items = query.items {
let mediaCollection = MPMediaItemCollection(items: items)
for song in mediaCollection.items {
song.enumerateValues(forProperties: propertiesSet, using: {_,_,_ in })
}
}
}`