Uninstalling app from iOS Device thru command line

command-line, ios, macos, uninstallation, xcode

Solution

Use the fantastic `mobiledevice` tool!

mobiledevice repo on GitHub

It compiles in seconds and it let you interact with the connected iOS devices very easily.

Problem

I'm running test on an app using UIAutomation, but I need a way to uninstall the app in a device (iPhone, iPad, iPod) without using jailbreak. Currently I´m using fruitstrap to upload the app to a cable connected device using the device UID. Is there a way thru a command line (yes it MUST be command line) to delete the app from the device?

Original source