I want to add ability to open some specific types of audio in my app: .caf, .aiff, .wav and .mp3. I've added 'Document Types' item to the info.plist according to the official guide. Here is a screenshot: And the source code of the info.plist:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Audio</string>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>public.mp3</string>
<string>public.aiff-audio</string>
<string>public.aifc-audio</string>
<string>com.apple.coreaudio-format</string>
<string>com.microsoft.waveform-audio</string>
</array>
</dict>
</array>
The problem in question
The problem is that the app is missing in the "Open in..." dialog for .caf and .wav files. I guess because UTIs for that files have no public.
perfix.
some missing extension no problem with that.