How to Test UIFileSharingEnabled?

Hi,

I’d like to support file sharing via iTunes in my app. I understand it’s available only for iOS 3.2 and beyond and that’s OK. I’ve added the UIFileSharingEnabled key to my xcode project’s info.plist file and built and installed the app on my iPad.

At this point I realized that my app is not listed in iTunes on the Apps page. It seems to me that in order to test file sharing via iTunes I need iTunes to recognize my app as a legitimate installed application.

Is there some other Xcode setting or info.plist key needed to make this happen? Xcode is set to “Release” as the Active Configuration.

Any insights are greatly appreciated!

Cheers,
Mal

Make sure the key is UIFileSharingEnabled and not a string. Also, delete the app from the phone and re-install it. It takes a couple of tries for iTunes to notice it.

Thank you bliprob! That totally nailed it. I had followed the instructions in the Apple Dev Center docs which said to set the value to YES. So I originally had:

UIFileSharingEnabled
YES

which simply didn’t work. When I changed the entry as you specified above, using a text editor, and deleted/re-installed my app, it immediately showed up in iTunes under File Sharing Apps.

Cheers,
Mal

@Malveka… Did you have any luck sharing files with a Unity3D application on iOS? I’m interested in tracking player metrics this way. I don’t want to require connectivity at the time of app running or having it radio home all sorts of data.

I haven’t implemented file sharing in the released version of my app but yes, by enabling UIFileSharingEnabled, as described above, I have successfully transferred files back and forth between my Unity app and iTunes. As an alternative to using a text editor, you can also duplicate one of the existing boolean keys (they have a checkbutton in the value column) in the info.plist file right in Xcode and change the key name.

Hope this helps.

Cheers,
Mal