Search code examples
ioscocoasandbox

iOS Move My Apps Saved File in Documents Dir to Another Computer


I am trying to figure out how to get a file saved (csv file) in my iOS app documents directory moved onto another computer. More specifically a windows server. Right now the app is in testing on an ipad. I don't know if I can access those files with another app, or if I could save the files somewhere else on the ipad where I can access it.

Ideally I would want to do the transfer over wifi, but I am open to other options.


Solution

  • You can enable File Sharing in your info.plist file for the app. This will give you manual read/write access to the app's document directory. Here is the raw XML:

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

    Then when the iOS device is connected to a computer running iTunes, the app's document directory will be accessible as described here.