Since iOS 18.3, icons are no longer generated correctly with QLThumbnailGenerator

Since iOS 18.3, icons are no longer generated correctly with QLThumbnailGenerator.

No error is returned either. But this error message now appears in the console:

Error returned from iconservicesagent image request: <ISTypeIcon: 0x3010f91a0>,Type: com.adobe.pdf - <ISImageDescriptor: 0x302f188c0> - (36.00, 36.00)@3x v:1 l:5 a:0:0:0:0 t:() b:0 s:2 ps:0 digest: B19540FD-0449-3E89-AC50-38F92F9760FE error: Error Domain=NSOSStatusErrorDomain Code=-609 "Client is disallowed from making such an icon request" UserInfo={NSLocalizedDescription=Client is disallowed from making such an icon request}

Does anyone know this error? Is there a workaround? Are there new permissions to consider?

Here is the code how icons are generated:

let request = QLThumbnailGenerator.Request(fileAt: url, size: size, scale: scale, representationTypes: self.thumbnailType)
request.iconMode = true
let generator = QLThumbnailGenerator.shared
generator.generateRepresentations(for: request) { [weak self] thumbnail, _, error in
}
Answered by yjogol in 857192022

With iOS 26 beta 9 this seems to be fixed. @OolonColoophd, @alex9403, @tkmcintosh is it solved for you too?

Since iOS 18.3, icons are no longer generated correctly with QLThumbnailGenerator
 
 
Q