https://github.com/benvium/libimobiledevice-macosx
clone下来后、添加到环境变量后即可使用
常用的如:
idevice_id list 查看连接的设备udid
ideviceinstaller -i ipa 安装到设备
ideviceinstaller -u appid 卸载app
通过xcrun命令将debug包安装、卸载、启动 (模拟器上)
e.g.
xcrun simctl install booted
/Users/用户名/Library/Developer/Xcode/DerivedData/Article-
emtbibjqatdqsagrujgbbijsqmrg/Build/Products/Debug-iphonesimulator/test.app/
xcrun simctl uninstall booted appid
xcrun simctl launch booted appid
网友评论