Adding custom document icon for document based Mac OS 16 App

Starting with Mac OS 16, Document Icons can be generated by defining a background and a Foreground element (see Apple Documentation).

I've defined the mentioned elements in my Assets and in the info.plist. Unfortunately I still can't see my custom icons. Neither on existing files, nor on newly saved files. I even added a Legacy Icon - which is also not shown in Mac OS.

The full source code of the app is over at gitHub .

Would be great if someone could point out what I'm not seeing here.

Thanks a lot, Holger

Here the relevant part of the info.plist

	<array>
		<dict>
			<key>CFBundleTypeIconFile</key>
			<string>Legacy</string>
			<key>CFBundleTypeIconSystemGenerated</key>
			<integer>1</integer>
			<key>CFBundleTypeName</key>
			<string>StateTransfer Request</string>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>LSHandlerRank</key>
			<string>Default</string>
			<key>LSItemContentTypes</key>
			<array>
				<string>de.holgerkrupp.statetransfer.request</string>
			</array>
			<key>NSDocumentClass</key>
			<string>NSDocument</string>
		</dict>
	</array>

	<key>UTExportedTypeDeclarations</key>
	<array>
		<dict>
			<key>UTTypeConformsTo</key>
			<array/>
			<key>UTTypeDescription</key>
			<string>StateTransfer Request</string>
			<key>UTTypeIconFile</key>
			<string>Legacy</string>
			<key>UTTypeIcons</key>
			<dict>
				<key>UTTypeIconBackgroundName</key>
				<string>IconBackground</string>
				<key>UTTypeIconBadgeName</key>
				<string>IconForeground</string>
				<key>UTTypeIconText</key>
				<string>REST</string>
			</dict>
			<key>UTTypeIdentifier</key>
			<string>de.holgerkrupp.statetransfer.request</string>
			<key>UTTypeTagSpecification</key>
			<dict>
				<key>public.filename-extension</key>
				<array>
					<string>httprequest</string>
				</array>
				<key>public.mime-type</key>
				<array>
					<string>application/json</string>
				</array>
			</dict>
		</dict>
	</array>
	<key>UTImportedTypeDeclarations</key>
	<array>
		<dict>
			<key>UTTypeConformsTo</key>
			<array/>
			<key>UTTypeDescription</key>
			<string>StateTransfer Request</string>
			<key>UTTypeIconFile</key>
			<string>Legacy</string>
			<key>UTTypeIcons</key>
			<dict>
				<key>UTTypeIconBackgroundName</key>
				<string>IconBackground</string>
				<key>UTTypeIconBadgeName</key>
				<string>IconForeground</string>
				<key>UTTypeIconText</key>
				<string>REST</string>
			</dict>
			<key>UTTypeIdentifier</key>
			<string>de.holgerkrupp.statetransfer.request</string>
			<key>UTTypeTagSpecification</key>
			<dict>
				<key>public.filename-extension</key>
				<array>
					<string>httprequest</string>
				</array>
				<key>public.mime-type</key>
				<array>
					<string>application/json</string>
				</array>
			</dict>
		</dict>
	</array>

Here a minimal project reproducing the https://github.com/holgerkrupp/TEST-DocumentIcons

Adding custom document icon for document based Mac OS 16 App
 
 
Q