I want to get all the photos of my custom album. but instead what I get is the below error.
My Code
let collections:PHFetchResult = PHAssetCollection.fetchAssetCollections(with: .album, subtype: .any, options: fetchOptions)
Error i get
"Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""
Any ideas on how to fix this?
Based on the comments, I'm not entirely sure what the issue is but I hope this code could provide some assistance. Using .album rather than .smartAlbum could also be part of the issue.