Objective
On the Mac build Appium tread a lot of pits, first version low, start after the infinite restart simulator. Later all the latest version of the upgrade, it is stable.
Environment Preparation:
1.OS Version Number 10.12
2.xcode Version number 8.3.2
3.appium version number 1.6.4 (appium-desktop1.1.0)
4.ios Simulator Version Number 10.3
First, OS10.12
1. Here Mac OS system must upgrade to 10.12, less than 10.12 is unable to install 8.3.2 version of the Xcode
2.:https://www.apple.com/macos/sierra/
Second, Xcode
1.Xcode version number download more than 8.3, small series here is the version of 8.3.2:
2.XOCDE in Sppstore can search for downloads, but too slow, here directly to the Apple Developer website download: https://developer.apple.com/support/xcode/
Third, Appium
1.appium dependent Environment, refer to this article: Appium+python on Mac Environment Building
2. Here is the main download of a client package,: Http://pan.baidu.com/s/1pKEoHBH, for example, download the DMG file can be installed in a fool.
3. After installation, start the interface as follows, without making any changes, direct point to start Server 1.6.4
Iv. iOS Simulator simulator
1. Start Xcode, create a new project, set it up, and find simulator in the upper left corner of the screen, refer to Tutorial: https://jingyan.baidu.com/article/7c6fb4280f3c4580642c90de.html
2. I chose the iOS10.3 version here, the IPhone SE
Five, Pycharm installation
1. Go to pycharm website to download a DMG package, address: https://www.jetbrains.com/pycharm/download/
2. Select the Professional Pro version on Mac, then install it after download
3. Open the software, fill in the license server address Http://xidea.online, and then click Activate to Break!
Let's start your Hello world! tour.
Six, start safari
1. Open Pycharm and write the following code
2.appium if it's open.
Seven,webdriveragent
1. The first startup script, will automatically install a webdriveragenton the phone, as shown, must see such a thing, otherwise certainly unsuccessful
2.WebDriverAgent implements a Webdriver server on the iOS side, and with this server we can remotely control the iOS device.
appium1.6 on Mac Environment build launch iOS simulator on Safari browser