命令行安装ipa文件

1、查看连接的设备udid

idevice_id -l

2、获取设备上所有app的bundle id

ideviceinstaller -l
image

3、IPA安装到设备

ideviceinstaller -i xx.ipa

4、卸载app

$ ideviceinstaller -U appBundle_id

# 例如:
ideviceinstaller -U com.bd.iphone.super

注意:升级xcode8后,ideviceinstaller命令运行报错:

Could not connect to lockdownd. Exiting.

解决方法:

sudo chmod -R 777 /var/db/lockdown/

或者一次性解决问题:

brew uninstall ideviceinstaller

brew uninstall libimobiledevice

brew install --HEAD libimobiledevice

brew link --overwrite libimobiledevice

brew install ideviceinstaller

brew link --overwrite ideviceinstaller

如果上述方法不成功,可试下以下方法,亲测有效

brew uninstall -f libimobiledevice ideviceinstaller usbmuxd如果命令被拒绝,可根据提示,# 

# 更新命令:
brew uninstall --ignore-dependencies libimobiledevice ideviceinstaller usbmuxd

brew install -v --HEAD --fetch --build-from-source usbmuxd libimobiledevice ideviceinstaller

ideivesinstaller -l 

你可能感兴趣的:(命令行安装ipa文件)