appium iOS 真机之坑

1.Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

解决:

  • 排查WebDriverAgent的配置问题,参考https://github.com/imurchie/appium-xcuitest-driver/blob/isaac-rs/docs/real-device-config.md#basic-manual-configuration
  • 最后出现ServerURLHere->http://172.16.100.26:8100<-ServerURLHere ,查看http://localhost:8100/status,正常情况会出现如下:
    {
      "value" : {
        "state" : "success",
        "os" : {
          "name" : "iOS",
          "version" : "12.0"
        },
        "ios" : {
          "simulatorVersion" : "12.0",
          "ip" : "172.16.100.26"
        },
        "build" : {
          "time" : "Mar  7 2019 11:12:37"
        }
      },
      "sessionId" : "24837120-55D0-4C7F-8B88-5F4EE4544AA2",
      "status" : 0
    }
  • 如果无法访问,可尝试
  • $ iproxy 8100 8100 udid
    waiting for connection

  • 命令执行完之后,访问本地的localhost:8100,就直接转发到了手机的8100端口。

  • 现在运行appium 

成功之后会这样:

注意:确保电脑和手机在同一个局域网内,例如,手机连接的是mac的热点,或者两者连接同一个wifi

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值