Skip to content

Instantly share code, notes, and snippets.

@JrGoodle
Last active August 29, 2015 14:25
Show Gist options
  • Save JrGoodle/2b8aeba6e5d653f408dc to your computer and use it in GitHub Desktop.
Save JrGoodle/2b8aeba6e5d653f408dc to your computer and use it in GitHub Desktop.
# List all installed company apps on the phone
ios-deploy -B | grep company
# List all the EyeprintID files on your device:
ios-deploy -1 com.company.app -l
# Remove all keyword_ logging files (one debugging case) without having to erase the application:
ios-deploy -1 com.company.app -l | grep keyword_ | while read name; do echo $name; ios-deploy -1 com.company.app -R $name; done
# Here is an ios-deploy alternative to iTunes based diagnostics retrieval, which is probably useful to more people:
ios-deploy -1 com.company.app --download=/Documents/diagnostics --to=Downloads
# The download tree maintains the full path (it isn’t relative to the top level specified folder), so the output would look like this:
# Downloads/
# └── Documents
# └── diagnostics
# └── images
# ├── image.png
# ├── image.yml
# This application is even more useful in the context of console application automation. After realizing a native C++ main(){} application can be built as a *.app bundle, I’ve been using this utility in bash script for various console application testing. You can upload files with `- o` and download results (Documents folder) using `- w`. The only glitch I ran into was retrieving the path of uploaded files automatically so they can be passed as arguments to launched applications. For that you can pass filenames relative to the application location with the `- a` command and just append the HOME directory using getenv(“HOME”) from within the app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment