Mac Virtual machine Building ATX Environment

Source: Internet
Author: User
Tags git clone

Try to upgrade Xcode to the latest version, keeping iphone versions larger than 9.3

1, install webdriveragent to iOS real machine

Download the code from GitHub:git clone https://github.com/facebook/WebDriverAgent

Bundle IDENTIFIER:COM.FDZQ.FORTHRIGHTSECURITIES-DEV2

2, Iproxy 8100 8100
3, Wdaproxy-p 8100-u DeviceID

Linux View Device ID command: idevice_id-l
Linux View IP command: ifconfig

Http://192.168.247.128:8100/inspector viewing element information virtual machine ip:192.168.247.128

4. Start webdriveragent with the command

To create a new shart.sh file on a virtual machine:

1) Enter Webdriveragent directory, vi start.sh

2) Press the "I" key on the keyboard to enter the editing state. You can see that the word "--insert--" appears underneath the command, indicating that it entered edit mode successfully.

3) Enter the following:

# Unlock the keychain so that you can properly sign the application,
Password= "123"
Security Unlock-keychain-p $PASSWORD ~/library/keychains/login.keychain

# get the Udid of your device
udid=$ (idevice_id-l | head-n1)

# Run Test
Xcodebuild-project webdriveragent.xcodeproj-scheme webdriveragentrunner-destination "id= $UDID" test

4) When the input is complete, press the "ESC" key to exit edit mode. and enter ": Wq" at this time to exit and save the content you just entered.

The command to start Webdriveragent is saved in the start.sh file.

Execute the start.sh file:

Cd/users/yang/webdriveragent
sudo xcode-select--switch/applications/xcode.app/contents/developer/
./start.sh

Mac Virtual machine Building ATX Environment

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.