Exported UTIs and Document types in xcode 9.1 with iOS 11

After the last update, without any change in code, my app will no longer appear in the "open in" menu. Has something changed in managing file types? My file is now associated with google drive and other generic apps! Thank you for any help...

My code:


<key>CFBundleDocumentTypes</key>

<array>

<dict>

<key>CFBundleTypeIconFiles</key>

<array/>

<key>CFBundleTypeName</key>

<string>Pin The World 2 File</string>

<key>CFBundleTypeRole</key>

<string>Editor</string>

<key>LSHandlerRank</key>

<string>Owner</string>

<key>LSItemContentTypes</key>

<array>

<string>com.valgy.PintheWorld2</string>

</array>

</dict>

</array>



<key>UTExportedTypeDeclarations</key>

<array>

<dict>

<key>UTTypeConformsTo</key>

<array>

<string>public.data</string>

</array>

<key>UTTypeDescription</key>

<string>Pin The World 2 File</string>

<key>UTTypeIdentifier</key>

<string>com.valgy.PintheWorld2</string>

<key>UTTypeTagSpecification</key>

<dict>

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

<string>p2w</string>

<key>public.mime-type</key>

<string>application/PintheWorld2</string>

</dict>

</dict>

</array>

Replies

If you’re publishing a file-based document type you should have it conform to

public.data
and
public.content
. The first tells the system that this can be represented as a flat stream of bytes, while the second indicates that it’s user-viewable document content.

I’m a bit mystified why you’re app previously worked. The reason why I know about this is that I learnt this lesson the hard way, and that was back on iOS 10.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

mmm. thank you for answer, but no, don't work yet.

If I try to open a standar file... no problem. But if I declare another kind of file, not standard, my app don't appear in "open in" menù.

Working with public.archive ! 😕