Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve files from iOS app Documents folder via command line

For the project I work on, we have to set up performance metrics. The way we do it is that the simulator writes CSV files to a known location. We then retrieve theses files and make graphs out of it. Piece of cake.

We also have these tests running on the device. In that case, the files are created in the Documents directory.

While I can retrieve these files via the organizer, I'd be much more interested in automating that.

How can I retrieve files from an iPhone app via the command line rather than the organizer?

like image 296
aspyct Avatar asked Aug 07 '13 14:08

aspyct


2 Answers

You can actually access the content of your app from your computer, using https://github.com/phonegap/ios-deploy (originally https://github.com/ghughes/fruitstrap) . It's as simple as :

./ios-deploy --download=/Documents --bundle_id com.mycompany.myapp -2 dest_dir

You can do much more, like listing the content of the app, debug using lldb etc.

like image 173
François Lagunas Avatar answered Nov 15 '22 06:11

François Lagunas


You can use iFuse, as part of libimobiledevice

like image 34
omribahumi Avatar answered Nov 15 '22 04:11

omribahumi