本文全部粘貼來自 https://www.cnblogs.com/lily1989/p/8383916.html? 侵刪
1.首先需要電腦有brew環(huán)境,檢查自己是否已經(jīng)安裝homebrew,在終端中輸入brew -v?,如果出現(xiàn)版本信息則說明已經(jīng)安裝,如果提示命令不存在則說明未安裝,?安裝homebrew的方法如下:https://brew.sh/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安裝完成brew后,安裝以下內(nèi)容:
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的系統(tǒng)版本:?ideviceinfo -k ProductVersion
獲取ios的手機名稱:?ideviceinfo -k DeviceName?
iOS?安裝?卸載ipa?包:
獲取ios的udid:?idevice_id -l,查看連接的設備udid
ideviceinstaller -l 查看手機所有APP
ideviceinstaller -i xxx.ipa?安裝到設備
ideviceinstaller -u com.xxx.xxx?卸載app