CFBundleDocumentTypes & UIFileSharingEnabled issues

carloe picture carloe · Apr 9, 2010 · Viewed 12.9k times · Source

Has anyone gotten UIFileSharingEnabled or CFBundleDocumentTypes to work? I added UIFileSharingEnabled as true to my plist and used Apple's example from the link below for CFBundleDocumentTypes, but can't seem to get it to work.

I don't see my app under file sharing in iTunes, and I do not get the option to open documents I registered in my app when I click on them in the mail.app

http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication/CoreApplication.html

Answer

LCombs74 picture LCombs74 · Apr 9, 2010

Carloe,

Open your app-info.plist as a text file. The UIFileSharingEnabled setting should look like this:

<key>UIFileSharingEnabled</key>
<true/>

If you did what I did and added UIFileSharingEnabled in the plist and set its value to YES, your key will look like this:

<key>UIFileSharingEnabled</key>
<string>YES</string>

After I fixed that key, my app popped right up in the File Sharing section under the Apps tab of iTunes.

Hope that fixes your problem too!