How to get started appium using Xcuitest for real device.
I found there are a lot of duplicated question about xcuitest and appium 1.6 beta in here. but most of questions about this still no good answer. so I decide to write a tutorials for everyone who don’t know how to get started appium using Xcuitest.
Let’s go ahead to see.
0. Preparation
Firstly make sure your node >=4 and npm>=3 before you install appium beta version using npm.
Thanks for this, but its not working for me. Perhaps its an XCode 8 issue? When I run sudo npm3 install -g appium I get this error repeated a LOT of times:
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm3/node_modules/npm/cli.js" "install" "-g" "appium"
npm ERR! node v4.6.0
npm ERR! npm v3.10.8
I didn’t install the appium-xcuitest-driver explicitly, just appium@beta and things seem to be working. But just out of curiosity, what are the contents of that Script-*.sh shell script? I had a similar problem installing ios-deploy and it turned out to be related to my version libreadline. Maybe try running that script on its own with like sh -x ./Script-AD35D0281CF1B37A00870A75.sh and see what it spits out.
Alternatively, you could try git cloning the project and building according to the steps in the README.md and see if that works. Then you could at least have some data points to contrast where the npm install fails compared to building locally from source. I can confirm that with El Capitan + XCode 8, I was able to compile and run WebDriverAgentRunner from source and get it running. Didn’t try to install via npm3, though (git clone [email protected]:appium/appium-xcuitest-driver.git).
If it turns out you’re having trouble with readline when it tries to figure out the lldb dependencies, you might want to make sure you’re using the version of libreadline it’s expecting (I had to do brew switch readline 6.3.8 to get ios-deploy running, don’t know if this is also a problem with xcuitest-driver). I hope this helps.
I am trying to execute mobile native app execution on real device . But appium log says “[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start”
I am not undressing why we have web driver agent running when i try to execute native mobile app but not web application .
Please confirm if any configurations needed to run native app.