Webdriveragent: [xcode 9] WebdriverAgentLib build failure: 'new' is unavailable: Use XCUIElementQuery to create XCUIElement instances.

Created on 22 Sep 2017  路  4Comments  路  Source: facebookarchive/WebDriverAgent

Recently upgraded(21/09/2017) xcode from 8.3 to xcode 9. Since then unable to build the WebDriverAgent.xcodeproj.
Appium version: 1.7.0

Issue: Error in WebDriverAgentLib. Error message: 'new' is unavailable: Use XCUIElementQuery to create XCUIElement instances.
screen shot 2017-09-22 at 1 26 41 pm

Most helpful comment

This fixed the issue for me.

For all of you who can't build WebDriverAgent in Xcode 9 it's because the WebDriverAgent project isn't updated in Appium 1.21. To fix it simply clone the repo from this link https://github.com/facebook/WebDriverAgent and replace it with downloaded WebDriverAgent with Appium.
Also run ./Scripts/bootstrap.sh in this directory.

All 4 comments

Hi,

I follow instructions here => https://github.com/facebook/WebDriverAgent/issues/611

but it failed to build again with other errors

This fixed the issue for me.

For all of you who can't build WebDriverAgent in Xcode 9 it's because the WebDriverAgent project isn't updated in Appium 1.21. To fix it simply clone the repo from this link https://github.com/facebook/WebDriverAgent and replace it with downloaded WebDriverAgent with Appium.
Also run ./Scripts/bootstrap.sh in this directory.

@pkulkarnii: As you mentioned I replaced the WebDriverAgent and was able to successfully install the web driver agent in my device, but it damaged the appium, and when I tried to open it mac was throwing an error like can't your appium is damaged and move it to thrash. I am using appium GUI.

@pkulkarnii Thanks for suggestion. This helped me to solved my issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rajfidel picture rajfidel  路  11Comments

AlexJinsin picture AlexJinsin  路  14Comments

monleylu picture monleylu  路  16Comments

xiaoyaoamiao picture xiaoyaoamiao  路  12Comments

saikrishna321 picture saikrishna321  路  8Comments