1.安装步骤

1.1 安装brew

打开终端输入:

 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

1.2 添加环境变量:

sudo vi /etc/profile,修改如

BREW_HOME="/usr/local/bin" #添加BREW_HOME
PATH=".$PATH:$JAVA_HOME/bin:$BREW_HOME" #追加BREW_HOME

ios ideviceintaller安装-LMLPHP
### 1.3 安装node
```#shell
brew install node
node -v #查看node版本
npm -v #查看npm版本
```
### 1.4 开始安装ideviceinstaller环境
```#shell
brew install carthage
npm i -g ios-deploy
brew install libimobiledevice --HEAD
brew install ideviceinstaller
#使用brew安装时,如果出现update home brew 直接control C退出更新
```
## ideviceinstaller使用
-u, --udid UDID根据设备的udid选择设备Target specific device by its 40-digit device UDID.
-l, --list-apps 列出安装的应用List apps, possible options:
-o list_user- list user apps only (this is the default)
-o list_system- list system apps only
-o list_all- list all types of apps
-o xml- print full output as xml plist
-i, --install ARCHIVE安装ipa包 Install app from package file specified by ARCHIVE.
ARCHIVE can also be a .ipcc file for carrier bundles.
-U, --uninstall APPID卸载应用Uninstall app specified by APPID.
-g, --upgrade ARCHIVEUpgrade app from package file specified by ARCHIVE.
-L, --list-archivesList archived applications, possible options:
-o xml- print full output as xml plist
-a, --archive APPIDArchive app specified by APPID, possible options:
-o uninstall- uninstall the package after making an archive
-o app_only- archive application data only
-o docs_only- archive documents (user data) only
-o copy=PATH- copy the app archive to directory PATH when done
-o remove- only valid when copy=PATH is used: remove after copy
-r, --restore APPIDRestore archived app specified by APPID
-R, --remove-archive APPID Remove app archive specified by APPID
-o, --optionsPass additional options to the specified command.
-h, --helpprints usage information
-d, --debugenable communication debugging
FAQ:
1.运行itools时,执行ideviceinstaller命令,出现“Could not start com.apple.mobile.installation_proxy!”,如
ios ideviceintaller安装-LMLPHP
解决方法:退出itools即可
2.iOS开发者模式如何打开
直接编译一个应用

05-11 16:25