Build xcode9.0+appium1.6.5 process and Link Simulator test app on Mac

Source: Internet
Author: User

It's easier to run a test app on a Mac than on a real-world computer on an iOS simulator. But the author really is tossing a 2

Days, Baidu Google search, the brain is fast-fried, encountered a variety of pits, the author of the Xode9.0 version is installed,

But in the end, I insisted on the fix. Let's talk about the steps to complete the test app on the simulator.

Premise:

1, has installed Xcode8.0 and above

2, Mac 10.12 or more (the author of the article when the latest MAC system is 10.12.6)

3, Installed appium1.6.5 (can install desktop version can also be installed via NPM command: NPM install–g appium)

I. Installing node. js

Go to https://nodejs.org/en/download/to download the Macosinstaller (. pkg) installation, and install it directly, without configuring the environment variables (which are automatically provisioned).

TypeError error is reported when node is not installed while running Appium-doctor check environment

II. Installation of Brew

Enter this command directly on the terminal to install:

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

Third, install the Carthage (install webdriveragent to use)

Performing a Brew install Carthage installation

Iv. installation of Webpack

NPM install–g webpack (best link VPN, otherwise wait a long time, I was linked to the VPN quite quickly loaded)

V. Installation of webdriveragent related dependencies

cd/applications/appium.app/contents/resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/ Webdriveragent (where to find your own appium path)

Execute Mkdir-p resources/webdriveragent.bundle before entering

Then execute sh./scripts/bootstrap.sh (it is best to link the VPN before executing this command. Wait very long)

This webdriveragent is installed Appium comes with, have the problem!! There is a problem!! There is a problem!!

Yes, the important thing to say three times!

Solve:

CD ~

git clone https://github.com/facebook/WebDriverAgent.git

Cdwebdriveragent

Mkdir-p Resources/webdriveragent.bundle

Sh./scripts/bootstrap.sh


cd/applications/appium.app/contents/resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/

RM–RF webdriveragent

Ln–s ~/webdriveragent Webdriveragent (quoting self-downloaded webdriveragent)


Start the simulator from Xcode, then lock it into the dock and then open it from the dock.

Seven, run their own test code. or the link simulator from Appium is also possible.

Well, their own construction process, engage me for 2 days, all kinds of Baidu and Google ... I almost gave up. , dedicated to everyone. The above must be installed or you will step on all kinds of pits.

Problem plus QQ Group Exchange 610845268


This article is from the "It Bug" blog, so be sure to keep this source http://laomomo.blog.51cto.com/6595318/1967826

Build xcode9.0+appium1.6.5 process and Link Simulator test app on Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.