p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ".PingFang SC"; color: #454545 }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
span.s1 { font: 12.0px "Helvetica Neue" }
span.s2 { font: 12.0px ".PingFang SC" }
1.首先需要电脑有brew环境,检查自己是否已经安装homebrew,在终端中输入 brew -v ,如果出现版本信息则说明已经安装,如果提示命令不存在则说明未安装, 安装homebrew的方法如下:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装完成brew后,安装以下内容:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller
3.app必须得通过Xcode签名认证,
获取ios的bundleld: ideviceinstaller -l -o list_user
获取ios的型号: ideviceinfo -k ProductType
获取ios的系统版本: ideviceinfo -k ProductVersion
获取ios的手机名称: ideviceinfo -k DeviceName
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545; min-height: 14.0px }
span.s1 { font: 12.0px ".PingFang SC" }
iOS 安装 卸载ipa 包:
获取ios的udid: idevice_id -l ,查看连接的设备udid
ideviceinstaller -i ipa 安装到设备
ideviceinstaller -u appid 卸载app
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ".PingFang SC"; color: #454545 }
span.s1 { font: 12.0px "Helvetica Neue" }
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
span.s1 { font: 12.0px ".PingFang SC" }
原文地址:https://www.cnblogs.com/lily1989/p/8383916.html