通过命令行从iOS设备卸载应用程序

Man*_*ter 9 macos xcode command-line uninstall ios

我正在使用UIAutomation在应用程序上运行测试,但我需要一种方法来在设备(iPhone,iPad,iPod)中卸载应用程序而不使用越狱.

目前我正在使用fruitstrap将应用程序上传到使用设备UID的有线连接设备.

有没有办法通过命令行(是的,它必须是命令行)从设备中删除应用程序?

use*_*518 8

使用ideviceinstaller

要安装应用程序:ideviceinstaller -i testApp.ipa

卸载应用程序:如果您不知道bundle id,请先获取bundle id, ideviceinstaller -l然后

ideviceinstaller -U com.testPackage.testApp


Sim*_*nti 6

使用神奇的mobiledevice工具!

GitHub上的mobiledevice repo

它可以在几秒钟内完成编译,它可以让您轻松地与连接的iOS设备进行交互.


小智 1

通过命令行:uninstall [-i/--id device_id] -b/--bundle bundle.app

从指定设备或所有连接的设备(如果未指定)中删除指定的包标识符(例如 com.foo.MyApp)。

使用存储库注意:适用于 SDK 6.1.3,但不适用于 SDK 6.1.4