I got this same error when making a fetchAssets call outside of the main thread.
Try calling your "queryLastPhoto" from the main thread like this:
DispatchQueue.main.async {
self.queryLastPhoto(to: SIZE) {
// my callback
}
}
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: