1. 安装应用:
Android: adb install xxx.apk
iOS: ideviceinstaller -i xxx.ipa
2. 卸载应用
Android: abd uninstall <packagename>
iOS: ideviceinstaller -U <bundleId>
3. 查看应用列表:
Android: adb shell pm list pagkages
iOS: ideviceinstaller [-u <device-udid>] -l
4. 获取真机实时日志:
Android: adb [-s <device-name>] logcat
iOS: idevicesyslog [-u <device-udid>]
5.获取当前连接的设备列表:
Android: adb devices
iOS: instruments -s devices(包括模拟器)
idevice_id -l(获取iOS手机的udid)
推荐链接:https://testerhome.com/topics/3766
6. Issues: Could not connect to lockdownd. Exiting.
查了资料说可以 :
sudo chmod -R 777 /var/db/lockdown/
或者brew uninstall ideviceinstaller之后再重装或者重启设备和mac
没有解决。
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
--> { }