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