I have to say that domestic articles are really copied pasted. . . It took a long time to build an appium automated testing tool. The following are my steps to build an environment based on Xcode11.3 macOS Majove10.14.5 appium1.15.1, I hope it will help you.
Step 1: Configure the basic environment (by default you have installed brew)
brew install npm
brew install node
brew install carthage
Necessary installation required for real machine
brew install libimobiledevice brew install ios-deploy
Determine if the installation is complete install appium-doctor
npm install -g appium-doctor appium-doctor
Step 2: Download and configuration of appiumdesktop client
#####1. Go to the official website to download appium-desktop. I am now installing appium1.15.1 (the latest version). #####2.
appium-webdriveragent. #####2.3 Libraries required by the installation project
# The following commands
carthage update --no-use-binaries --platform iOSand official documentation installation md different, I use the official ./Scripts/bootstrap.sh -d execute scripts can not install the full tripartite library for a computer does not work, interested students can try.
cd appium-webdriveragent 2 mkdir -p Resources/WebDriverAgent.bundle carthage update --no-use-binaries --platform iOS
TARGETS bundlID team
bundlID Build Setting -> packaging -> product bundle identifer
Step 3: Compile and run
#####3.1 Install the WebDriverAgentRunner program on a real machine
As shown in the figure below, the program switches to WebDriverAgentRunner, the device selects your phone, and executes Command + U or Product -> Test. After the execution, the modified program will be installed on the phone, and you can trust it.
#####3.2 Run appium program
Run the Appium program installed on the mac, click Start Server, click the icon, enter the parameters (search for the meaning of the specific parameters yourself), and click Start Session to see the following renderings