IOS document icon not appearing

I can't get my app's document icon to appear for my document extension. I have tried different ways of configuring it based on Apple's documentation and various solutions posted on the internet.

At first I tried adding the icon to the imported type identifier box where it says 'Add imported type identifier icons here' nothing happens when I select an icon (.png) stored in the project. I have checked the info.plist source and there is nothing there.

I have since tried editing the source directly. Here are the relevant pieces of my latest attempt. Can anyone tell me where I'm going wrong. Thanks.

	<key>CFBundleDocumentTypes</key>

	<array>

        <dict>

            <key>CFBundleTypeIconFiles</key>

            <string>writingshed.png</string>

            <key>CFBundleTypeName</key>

            <string>Writing Shed Data</string>

            <key>LSHandlerRank</key>

            <string>Owner</string>

            <key>LSItemContentTypes</key>

            <array>

                <string>wsd</string>

            </array>

        </dict>
   </array>

	<key>UTExportedTypeDeclarations</key>

	<array>

		<dict>

			<key>UTTypeDescription</key>

			<string>Writing Shed Data</string>

			<key>UTTypeIconFiles</key>

			<array>

				<string>writingshed.png</string>

			</array>

			<key>UTTypeIdentifier</key>

			<string>WritingShedData</string>

			<key>UTTypeTagSpecification</key>

			<dict>

				<key>public.filename-extension</key>

				<array>

					<string>wsd</string>

				</array>

			</dict>

            <key>UTTypeConformsTo</key>

            <array>

                <string>public.data</string>

            </array>

		</dict>

	</array>

	<key>UTImportedTypeDeclarations</key>

	<array>

		<dict>

			<key>CFBundleTypeRole</key>

			<string>Editor</string>

			<key>UTTypeConformsTo</key>

			<array/>

			<key>UTTypeDescription</key>

			<string>Writing Shed Data</string>

			<key>UTTypeIconFiles</key>

			<array>

				<string>writingshed.png</string>

			</array>

			<key>UTTypeIdentifier</key>

			<string>WritingShedData</string>

			<key>UTTypeTagSpecification</key>

			<dict>

				<key>public.filename-extension</key>

				<array>

					<string>wsd</string>

				</array>

			</dict>

		</dict>

	</array>

After much experimenting and googling I came across the answer to this. The answer is as follows:

	<key>UTExportedTypeDeclarations</key>

	<array>

		<dict>

			<key>UTTypeConformsTo</key>

			<array>

				<string>public.data</string>

			</array>

			<key>UTTypeDescription</key>

			<string>Writing Shed Data</string>

			<key>UTTypeIconFiles</key>

			<array>

				<string>writingshed.png</string>

			</array>

			<key>UTTypeIdentifier</key>

			<string>www.writing-shed.comuk.Writing-Shed.data</string>

			<key>UTTypeTagSpecification</key>

			<dict>

				<key>public.filename-extension</key>

				<array>

					<string>wsd</string>

				</array>

			</dict>

		</dict>

	</array>

	<key>UTImportedTypeDeclarations</key>

	<array>

		<dict>

			<key>UTTypeConformsTo</key>

			<array>

				<string>public.data</string>

			</array>

			<key>UTTypeDescription</key>

			<string>Writing Shed Data</string>

			<key>UTTypeIconFiles</key>

			<array>

				<string>writingshed.png</string>

			</array>

			<key>UTTypeIdentifier</key>

			<string>www.writing-shed.comuk.Writing-Shed.data</string>

			<key>UTTypeTagSpecification</key>

			<dict>

				<key>public.filename-extension</key>

				<array>

					<string>wsd</string>

				</array>

			</dict>

		</dict>

	</array>
IOS document icon not appearing
 
 
Q