Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download container for an app from iPhone using Xcode command line

Tags:

xcode

ios

I have developed an iOS app, this app saves some of the log, that appears in the applications container. I can download this container using Xcode > Device > Select App > Download Container menu option.

Then I can see my log file in directory ..../AppData/Documents/mylog.log

Basically process describe here https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/manage_containers.html

However I want to automate this, is there way to download an applications container using Xcode via command line?

like image 821
Subodh Nijsure Avatar asked Jan 05 '15 20:01

Subodh Nijsure


People also ask

How do I deliver iOS app to client?

Log in with your Apple ID (your account for iTunes) and enter in your name, recipient's name, and recipient's email. You'll get a chance to review the app gift before buying it. Once you do, your account will be charged, the app will be sent to your gift recipient, and you'll get a receipt.


1 Answers

There is a project called ios-deploy on github. https://github.com/phonegap/ios-deploy

// Download your app's Documents, Library and tmp folders
ios-deploy --bundle_id 'bundle.id' --download --to MyDestinationFolder

// List the contents of your app's Documents, Library and tmp folders
ios-deploy --bundle_id 'bundle.id' --list

// Download the Documents directory of the app only
ios-deploy --download=/Documents --bundle_id my.app.id --to ./my_download_location

Also, if you have a jailbreaked phone, you would have the most flexibility of do anything relative to file operations. For example you could copy files using tools like 'scp', 'rsyn';

like image 140
user1577263 Avatar answered Sep 28 '22 08:09

user1577263