我正在使用UIAutomation测试应用程序,但我需要一种不使用越狱的方式在设备(iPhone、iPad、iPod)上卸载应用程序。
目前,我正在使用fruitstrap将应用程序上传到使用设备UID连接的电缆设备。
有没有通过命令行(是的,必须是命令行)从设备中删除该应用程序的方法?
我正在使用UIAutomation测试应用程序,但我需要一种不使用越狱的方式在设备(iPhone、iPad、iPod)上卸载应用程序。
目前,我正在使用fruitstrap将应用程序上传到使用设备UID连接的电缆设备。
有没有通过命令行(是的,必须是命令行)从设备中删除该应用程序的方法?
使用ideviceinstaller
安装应用程序:ideviceinstaller -i testApp.ipa
卸载应用程序:如果您不知道捆绑标识符,请先获取捆绑标识符 ideviceinstaller -l
然后
ideviceinstaller -U com.testPackage.testApp
新人登场 - ios-deploy
MobileDevice是个不错的工具,但已经不再被积极开发了。ios-deploy效果很棒。
以下是命令 -
ios-deploy --id <device_id> --uninstall_only --bundle_id com.app.testapp
通过命令行操作:uninstall [-i/--id device_id] -b/--bundle bundle.app
从指定的设备中删除指定的包标识符(例如com.foo.MyApp),如果没有指定则从所有连接的设备中删除。
使用this存储库。 注意:适用于SDK 6.1.3,但不适用于SDK 6.1.4。
对于那些通过谷歌搜索到此的人: 您可以安装 Ruby Gem ios_app_installer(这是 ios-deploy 的“轻量级”版本),安装后使用以下命令:
ios_app_installer -b <bundle id> -u