3

So I need to programmatically write a file to my Application's Documents directory on my iPhone. I can't use libimobiledevice for license restrictions. iphonedisk is no longer maintained and as far as I gather you can't actually access the Application data anyway.

So I think I need to use the MobileDevice framework directly.

http://theiphonewiki.com/wiki/index.php?title=MobileDevice_Library

Does anybody know how to do this?

DevDevDev
  • 5,107
  • 7
  • 55
  • 87
  • Why is LGPL 2.1 problematic for you? LGPL allows for any type of program, GPL or not, to link against the covered library. If you're using `gcc` on the Mac, you're linking against the LGPL `libc`. – greg Jan 30 '12 at 21:55
  • Because LGPL 2.1 has clauses about being able to provide a replacement copy of whatever library. Due to the constraints of this application such a substitution would not be possible. – DevDevDev Jan 30 '12 at 22:12
  • 4
    do you want to write a plist or a data file ? Why do you have to use MobileDevice framework and not the methods provided by iOS? – Alex Stanciu Feb 01 '12 at 23:06
  • There are no methods provided by iOS. – DevDevDev Feb 03 '12 at 00:07
  • Unless of course you are making an iPhone accessory. – DevDevDev Feb 03 '12 at 00:07

3 Answers3

2

You can do this by using fruitstrap : https://github.com/phildrip/fruitstrap

fruitstrap upload [--id=device_id] --bundle-id= --file=filename [--target=filename]
ıɾuǝʞ
  • 2,829
  • 26
  • 38
1

Look at this project MobileDevice Manager. It should help you.

toohtik
  • 1,892
  • 11
  • 27
0

So in our scenario, I needed some of my applications to share data/files. So we used a ftp server to sync data between them. I know this is a twisted way, but that was the only way to do it. There is no way to list files in a ftp folder, so we created a text file with list zip files to download. So instead of files we downloaded zip files, unzipped them and used them.

Siddharth
  • 9,349
  • 16
  • 86
  • 148