添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
稳重的甘蔗  ·  qml ...·  2 月前    · 
怕老婆的仙人球  ·  GitHub - ...·  8 月前    · 
至今单身的青蛙  ·  xml.etree.ElementTree ...·  12 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem

Getting this message multiple times until timeout. Reproduces only on appium console for quite a long time ~(1.13-1.16).
Appium Desktop (1.15.1) works well.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.16
  • Last Appium version that did not exhibit the issue (if applicable): not sure
  • Desktop OS/version used to run Appium: macOS Mojave 10.14.6
  • Node.js version (unless using Appium.app|exe): 13.6.0
  • Npm package manager: 6.13.4
  • Mobile platform/version under test: 13.3
  • Real device: iPhone 8 Plus
  • Appium CLI
  • Details

    Checked all existing issues. Suggested solutions didn’t help.
    Please help.

    Link to Appium logs

    Bad and Good

    https://gist.github.com/georgekucher/64cc8c677a86f76aaca26542b4f0aab2

    �> 2020-01-14 11:17:03:678 [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65

    This is the source of the problem. The exception is thrown because there is no connection to the WDA server as it is not running on the device under test

    You could get more information on the error if you enable Xcodebuild logging from capabilities

    This is build machine (CI)
    On my local macbook all works fine
    I did everything following the instructions many times.
    And Xcode build (under Xcode) passed and WDA installs

    Going to enable Xcodebuild logging.
    Thanks.

  • This article is outdated - ios-xcuitest-real-devices
  • I have found an interesting thing that appium 1.16 has two different places in which we have to sign WebDriverAgent.xcodeproj
  • /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj
    /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj 
    

    In my opinion, these discrepancies should be emphasized in docs or removed to prevent such situation (in the earlier version of Appium there was only one place in which we had to sign WebDriverAgent.xcodeproj /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent )

  • this article is outdated - [http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/]
  • I have found an interesting thing that appium 1.16 has two different places in which we have to sign WebDriverAgent.xcodeproj
  • /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj
    /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj 
    

    In my opinion, these discrepancies should be emphasized in docs or removed to prevent such situation

    The second place is the right one.

    Only appium-xcuitest-driver/node_modules/appium-webdriveragent/ should be the right root folder for WDA for Appium 1.16

    The other one is probably used by other drivers (most likely Flutter, which depends on the older module version)

    Only node_modules/appium-webdriveragent/ should be the right root folder for WDA for Appium 1.16

    The other one is probably used by other drivers (most likely Flutter)

    If the second place is not signed it fails for me

    @mykola-mokhnach enabling Xcodebuild logging from capabilities needs to make changes to the Core of our framework which is not belongs to me (it will take some time)
    Do you have any other suggestions?

    In the log it is clearly visible which WDA path is used:

    2020-01-13 11:54:33:666 [XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'

    Why then??

    it actually depends on npm which folder is put to the modules root and which one is put under appium-xcuitest-driver

    Although you are right, the documentation should be updated to reflect this case

    Appium GUI 1.15.1 and 1.16.0 - Installs WebDriverAgentRunner on real iOS device - Installs ipa on real device - then removes them an throws bundleId error #13894

    Hello,
    The WebdriverAgent isn't running on a simulator for me. I'm working through the Appium Pro Workshop and on the Appium Sessions section. Everything works as expected with an Android Simulator. With IOS, the WDA and application get installed, but the Appium Server can't connect to the WebdriverAgent.

    [debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
    [debug] [WD Proxy] Matched '/status' to command name 'getStatus'
    [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
    [WD Proxy] Got an unexpected response with status undefined: {"errno":-61,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":8100}

    Appium tries repeatedly but fails to connect. I verified nothing is running on port 8100 before during or after I run the IOSCapabilitiesTest.

    I know this bug is marked as closed but I don't see a workaround or fix submitted above.
    Any help would be much appreciated. Thank you.

    Is there anyway to change where http://localhost:8100/status or 127.0.0.1","port":8100 are going? My appium server says 0.0.0.0:4723 so I think a problem might be reaching out to the wrong port/ip.

    Eventually it errors out with:

    [info] �[35m[WD Proxy]�[39m Got response with unknown status: {"code":"ECONNRESET"}[error] �[35m[Xcode]�[39m 2020-08-11 09:45:21.348 xcodebuild[22597:58545] DTDeviceKit: Could not start house arrest service for app identifier com.facebook.WebDriverAgentRunner.xctrunner [Error Domain=com.apple.dtdevicekit Code=-402653093 "Xcode encountered an error" UserInfo={NSLocalizedFailureReason=Too many instances of this service are already running.

    I also faced this issue . In my situation, I have installed appium both via npm as well as Appium Desktop.
    I was running Appium server via Appium Desktop and was constantly getting this error.

    I checked logs and found that WebDriverAgent.xcodeproj was located at /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/ in case of Appium Desktop and at /Users/username/.nvm/versions/node/v_nodeversion_/lib/node_modules/appium/node_modules/appium-webdriveragent (I installed node via nvm) for appium installed via node.

    I followed steps given in https://appium.io/docs/en/drivers/ios-xcuitest-real-devices/#full-manual-configuration for both locations and automation worked for me. ( Note: App signing was done using Apple developer account).