• 我用 appium1.15.1 ,iOS特别不稳定,经常连不上,要不停尝试。。。
    不知道杀原因。

  • 你好。我也把Appium升级到1.15.1了,但是跑iOS 的时候,经常会连不上手机,需要尝试很多次才能成功,而且在操作过程中也有可能会连不上。
    请问你遇到过吗?

  • 请问是Appium 1.15.1吗?
    我这升级到1.15.1,然后跑iOS真机的时候,老是报错连不上手机

  • 楼主,后来问题搞定了吗?

  • automationName: XCUITest
    配置中加了上面的信息之后,新的报错:

    2019-10-22 14:49:02 INFO [Crawler.274.setupAppium] Map(newCommandTimeout -> 120, bundleId -> com.360buy.jdmobile, automationName -> XCUITest, launchTimeout -> 120000, appium -> http://localhost:4723/wd/hub, noReset -> true, dontStopAppOnReset -> true)
    Exception in thread "main" org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'Mac-20190730deMac-mini.local', ip: 'fe80:0:0:0:449:597a:6b37:496f%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_77'
    Driver info: driver.version: IOSDriver
    at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:195)
    at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:209)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:130)
    at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:94)
    at io.appium.java_client.ios.IOSDriver.(IOSDriver.java:95)
    at com.testerhome.appcrawler.driver.AppiumClient.appium(AppiumClient.scala:107)
    at com.testerhome.appcrawler.driver.AppiumClient.(AppiumClient.scala:40)
    at com.testerhome.appcrawler.Crawler.setupAppium(Crawler.scala:277)
    at com.testerhome.appcrawler.Crawler.start(Crawler.scala:139)
    at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:322)
    at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:290)
    at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:91)
    at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:185)
    ... 20 more
    Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not create simulator with name 'appiumTest-DD5C528F-40A4-4671-97FF-23389F454D11-demo', device type id 'demo' and runtime id 'com.apple.CoreSimulator.SimRuntime.iOS-13-0'. Reason: 'simctl error running 'create': Invalid device type: demo'

  • 我用Appium 自带的wda,也是没有成功,后来在git下载的
    WebDriverAgent 用的GitHub下载的( git clone https://github.com/facebook/WebDriverAgent.git ),拷贝到Appium的目录下

  • 看了下 .yml 文件里面有 blackList 类似的,但是后面没有写具体的内容,把这些注释掉尝试着跑了一下,没有报错了。
    #firstList:

    #selectedList:

    #lastList:

    #blackList:

  • Appium v1.15.0
    xcode11.0

    WebDriverAgent 用的GitHub下载的( git clone https://github.com/facebook/WebDriverAgent.git ),拷贝到Appium的目录下

  • 已经解决,被坑了两礼拜。。。解决过程如下(注意第二步操作😂 ):

    Xcode 执行Product- test成功,会在iPhone 上安装WebDriverAgent
    手动卸载掉WebDriverAgent
    打开Appium,连接iphone(过程中会安装WebDriverAgent ),连接成功。

    @对酒当歌

  • 已经解决,被坑了两礼拜。。。解决过程如下(注意第二步操作😂 ):

    1. Xcode 执行Product- test成功,会在iPhone 上安装WebDriverAgent
    2. 手动卸载掉WebDriverAgent
    3. 打开Appium,连接iphone(过程中会安装WebDriverAgent ),连接成功。

    @wxlsh114