iOS自动化常用命令集合

转为iOS测试也有快半年了(从2015.3.10开始),发现苹果的东西搞起来非常顺手,这就是封闭系统带来的好处,让开发者在iOS这个圈子里面按照规则运行,能够更加专注于实现目的。现在列几个常用到的命令,慢慢补充。


  Android命令 iOS命令
安装应用 adb install -r <apk path>

真机安装:

fruitstrap  -b  UCWEB.app/XXX.ipa

模拟器安装:

xcrun simctl install booted <XXX.app/XXX.ipa>


卸载应用 adb uninstall -k <package name>

卸载应用(万能法,杀伤力极大,直接重置设备):

The solution that I came up with is to use the command

xcrun simctl erase [device ID]

只是卸载应用(删除设备的安装数据)

rm -rf  

  ~/Library/Developer/CoreSimulator/Devices/

       <device id>/data/Containers/Data/Application/* 


查看设备 adb devices

查看设备:

instruemtns -s  devices

更加详细:

The device ID can be obtained from running

xcrun simctl list



     

猜你喜欢

转载自blog.csdn.net/g19920917/article/details/47952803