Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove iOS app from command line

So we're building this iOS application. We have performance tests that are automatically run by Jenkins. Of course these tests must be run on the device.

Right now we have a lot of trouble with some tests, and I suspect that they don't clean up after themselves, leaving the app's Documents folder in an uncertain state. Obviously I can fix the cleanup, but this will take a huge time.

I'd love to be able to just delete the app from the device before running the tests. Is there any way we can do this via xcodebuild or any other automatable tool. Could be even applescript or a non-official tool. The only rule is that we may not jailbreak the device.

like image 639
aspyct Avatar asked Nov 11 '22 18:11

aspyct


1 Answers

One multi-platform option is libimobiledevice and the ideviceinstaller utility. It runs on Linux, Mac and Windows and even supports iOS 9. As noted in the library webpage, it does not depend on jailbreak.

To delete an app do:

ideviceinstaller -uninstall com.somecompany.someapp
like image 101
Roy Falk Avatar answered Nov 15 '22 07:11

Roy Falk