1.真机
①安装ideviceinstaller
Please uninstall libimobiledevice and ideviceinstall, then disconnected all iOS device.
Then install libimobiledevice with --HEAD, and ideviceinstaller, and removed all file of the directory /var/db/lockdown/.
Finally, connect your iOS device again, and Trust the Mac on your iPhone.
brew uninstall ideviceinstaller -g
brew uninstall libimobiledevice -g
brew install --HEAD libimobiledevice -g
brew install ideviceinstaller -g
sudo rm -rf /var/db/lockdown/*
②将真机连接在mac上,命令行输入idevice_id -l,如果出现该设备的udid,则说明配置成功能够正常识别了。
相关指令:
ideviceinstaller -i [ipa文件] -o [设备udid] 安装ipa文件到设备
ideviceinstaller -l -o [设备udid] 显示当前设备中所有已安装的应用
ideviceinstaller -U [appId] -o [设备udid] 卸载应用