Search code examples
iosios6zipinfo.plistuti

CFBundleDocumentTypes Not Registering


Right now I am making a document based app for iOS. I am currently trying to register .zip for opening with my app. I have tried apple's example and many other tutorials such as the one here. However, none of them make my app show up in mail.app or any other app. I have even tried removing the app and then running it with no luck. If it makes a difference, I am running iOS 6. A part of info.plist is below:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Zip File</string>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.pkware.zip-archive</string>
        </array>
    </dict>
</array>

Any help is greatly appreciated.


Solution

  • I handle zip files and have this:

        <dict>
            <key>CFBundleTypeName</key>
            <string>ZIP</string>
            <key>LSHandlerRank</key>
            <string>Alternate</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>com.pkware.zip-archive</string>
                <string>public.zip-archive</string>
            </array>
        </dict>