Uninstalling app from iOS Device thru command line

2019-04-06 00:15发布

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?

5条回答
仙女界的扛把子
2楼-- · 2019-04-06 00:22

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.

查看更多
等我变得足够好
3楼-- · 2019-04-06 00:23

Use ideviceinstaller

To install app: ideviceinstaller -i testApp.ipa

To uninstall app: If you don't know bundle id, first get bundle id ideviceinstaller -l then

ideviceinstaller -U com.testPackage.testApp

查看更多
老娘就宠你
4楼-- · 2019-04-06 00:33

Via command line: uninstall [-i/--id device_id] -b/--bundle bundle.app

Removed the specified bundle identifier (eg com.foo.MyApp) from the specified device, or all attached devices if none are specified.

Used this repository Note: works with SDK 6.1.3 but not with SDK 6.1.4

查看更多
等我变得足够好
5楼-- · 2019-04-06 00:35

For those who still get here by google: You can installe the ruby gem ios_app_installer (which is a "light" version of ios-deploy) and after installing it use the command

ios_app_installer -b <bundle id> -u

(The device may have to be connected via USB)

查看更多
爷、活的狠高调
6楼-- · 2019-04-06 00:42

New Kid on the block - ios-deploy

MobileDevice was a good tool, however not being actively developed. ios-deploy works great.

Here is the command -

ios-deploy --id <device_id> --uninstall_only --bundle_id com.app.testapp

(ios-deploy is forked from fruitstrap only)

查看更多
登录 后发表回答