I've attached a sample project to my feedback report (FB16862332) that demonstrates the problem with Xcode 16.4 on iOS 18.5.
This is just a minimally-modified version of the Document App project template from Xcode 16.4. Modifications are to provide an app icon and export a custom file type.
diff --git a/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/AppIcon1024x1024.png b/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/AppIcon1024x1024.png
new file mode 100644
index 0000000..0b96db4
Binary files /dev/null and b/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/AppIcon1024x1024.png differ
diff --git a/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/Contents.json b/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/Contents.json
index 2305880..b5305cf 100644
--- a/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/TestDocumentAppShareIcon/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -1,6 +1,7 @@
{
"images" : [
{
+ "filename" : "AppIcon1024x1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
diff --git a/TestDocumentAppShareIcon/Info.plist b/TestDocumentAppShareIcon/Info.plist
index 48e3639..f7217d0 100644
--- a/TestDocumentAppShareIcon/Info.plist
+++ b/TestDocumentAppShareIcon/Info.plist
@@ -7,9 +7,11 @@
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
+ <key>LSHandlerRank</key>
+ <string>Owner</string>
<key>LSItemContentTypes</key>
<array>
- <string>com.example.plain-text</string>
+ <string>com.example.exampletext</string>
</array>
<key>UIDocumentClass</key>
<string>Document</string>
@@ -32,17 +34,18 @@
</array>
</dict>
</dict>
- <key>UTImportedTypeDeclarations</key>
+ <key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
- <string>public.plain-text</string>
+ <string>public.content</string>
+ <string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Example Text</string>
<key>UTTypeIdentifier</key>
- <string>com.example.plain-text</string>
+ <string>com.example.exampletext</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
The following error messages are emitted when tapping the document title menu, when the placeholder icon is displayed:
LPFileMetadataProviderSpecialization failed to retrieve a thumbnail from QuickLookThumbnailing (Error Domain=QLThumbnailErrorDomain Code=0 "Could not generate a thumbnail" UserInfo={NSUnderlyingError=0x10db4d800 {Error Domain=QLThumbnailErrorDomain Code=102 "(null)" UserInfo={NSUnderlyingError=0x10db4d860 {Error Domain=GSLibraryErrorDomain Code=3 "Generation not found" UserInfo={NSDescription=Generation not found}}}}})
Error returned from iconservicesagent image request: <ISTagIcon: 0x10db23500> Tag: exampletext, Class: public.filename-extension, Base type: public.item - <ISImageDescriptor: 0x10dadcaa0> - (37.00, 48.00)@3x v:40000 l:5 a:0:0:0:0 t:() b:0 s:2 ps:0 digest: 0D3223D0-9AE3-3B19-A081-ACACE55691B7 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}
Error returned from iconservicesagent image request: <ISTagIcon: 0x10dbe0400> Tag: exampletext, Class: public.filename-extension, Base type: public.item - <ISImageDescriptor: 0x10dadca00> - (37.00, 48.00)@3x v:40000 l:5 a:0:0:0:0 t:() b:0 s:2 ps:0 digest: 0D3223D0-9AE3-3B19-A081-ACACE55691B7 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}
Error returned from iconservicesagent image request: <ISTypeIcon: 0x10daf1e60>,Type: com.example.exampletext - <ISImageDescriptor: 0x10dadd220> - (40.00, 40.00)@3x v:0 l:5 a:0:0:0:0 t:() b:0 s:2 ps:0 digest: E988236A-DCCF-30CB-83D0-D901CB1A5499 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}
It's worth noting that Apple's UIDocumentController-based apps like Pages and Numbers use dynamically-generated thumbnail icons, so that's presumably why the problem is not observed in those apps.