The first step
Install JDK, this installation step can be ignored if the machine has 1.7 or more versions.
Baidu download JDK and configure environment variables vim ~/.bash_profile
Check if the installation is successful java-version
Step Two
Check the brew version, Brew-v (Brew is the package management tool on Mac OS)
If your Mac does not have a brew tool, you can access it and install it based on official website operation.
: https://brew.sh/index_zh-cn.html
Step Three
Check if Git,git--version is installed
If you don't have git, you can install the brew install Git,mac from the brew you just installed, without the need for updates.
Fourth Step
Install node service, Brew Install node
Check if the installation is successful NODE-V
Fifth Step
Installing MAC-ANDROID-SDK
: http://tools.android-studio.org/index.php/sdk/Select corresponding operating system download, extract to/usr/local/opt
Configuring MAC-ANDROID-SDK environment variables, vim ~/.bash_profile
Double-click android in the/usr/local/opt/android-sdk-macosx/tools directory to install the Android plugin
As with the Windows Installer plug-in, install an arbitrary version of Android, and the latest tools tools.
Sixth step
Install the Appium-doctor command to detect whether the above five steps are installed with the installation configuration successfully npm Install-g appium-doctor (no spaces between appium and doctor)
Execute appium-doctor command If all tick is configured successfully
Error 1: Appears as error
Command:xcode-select--install (install Xcode tools by command)
Seventh Step
Install X-code compile tool, Baidu or AppStore download can. (Note: After the installation is complete, be sure to open Xcode for a complete installation)
Eighth step
Install a variety of plugins. (Note: Most of the following installation packages need to be downloaded in Fanqiang case.) )
1. Brew Install Libimobiledevice or brew install--head Libimobiledevice
2. Brew Install Ideviceinstaller
3. Brew Install Carthage
4. NPM Install-g Ios-deploy
Error 1: If reported as error during installation
Because of the presence of an exception in Xcode's directory, it is possible to directly specify a Xcode that we are using by command.
Command:sudo xcode-select--switch/applications/xcode.app/contents/developer (here path to write the Xcode path you are using, default is this path)
Error 2: If reported as error during installation
Command:sudo npm install-g ios-deploy--unsafe-perm=true (install ios-deploy via this command)
5. sudo gem install Xcpretty
6. NPM Install-g Appium-android-driver
7. NPM Install-g Appium-ios-driver
8. NPM Install-g Appium
Install if failure can attempt to install Appium via CNPM
Installing CNPM with npm command
NPM install-g cnpm--registry=https://registry.npm.taobao.org
Installing Appium via CNPM
CNPM install-g Appium--no-cache
9. NPM INSTALL-G WD
Nineth Step
Installing Webdriveragent
Default directory/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/webdriveragent
Execute sudo./scripts/bootstrap.sh
Tenth step
Configure Webdriveragent. Play the driver package to the iOS terminal.
Using X-code to open the Webdriveragent under NPM installed Appium, the default directory/usr/local/lib/node_modules/appium/node_modules/ Appium-xcuitest-driver/webdriveragent, double strike Open webdriveragent.xcodeproj
Configure Webdriveragentlib-general.
Configure Webdriveragentrunner-build Settings To configure the two fields in the red box to be unique strings.
Configure Webdriveragentrunner-general.
Pack your iOS phone to make sure your phone is connected to your computer.
The device appears on the phone for successful installation.
11th Step
Installing Appium-desktop
: https://github.com/appium/appium-desktop/releases (Download latest version)
After successful installation in/applications/appium.app/contents/resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/ Under the Webdriveragent directory
Double-click Open Webdriveragent.xcodeproj, perform the tenth step (this step installs the driver for Appium-desktop, webdriveragentrunner-build settings in the product Bundle The identifier parameter and the ProductName parameter are set to the same as the tenth step. )
When the configuration is complete, start appium-desktop
The environment is successfully configured with your own mobile screen
Mobile Automation Test-mac-ios-appium environment Construction