Appium server版本更新-包括相关依赖更新及问题

更新Appium1.7.1到1.8.1
1. 命令行更新appium可能需要翻墙
2. 直接用命令:sudo npm install -g appium会出现错误:
Error: EACCES: permission denied, mkdir '/usr/local/n/versions/node/10.4.0/lib/node_modules/appium/node_modules/appium-chromedriver/201858-3907-hybcas.w91wc'
更新appium命令换成下面的避免以上错误:

$ sudo npm install -g appium --unsafe-perm=true --allow-root

3. 错误信息:python2: command not found
stack Error: Command failed: /user/path/.pyenv/shims/python2 -c import platform; print(platform.python_version());

stack pyenv: python2: command not found

解决办法:用python2所在目录下的python2可执行文件替换在/user/path/.pyenv/shims目录下的python2。

需要用到python2命令,确保python2能正常执行
$ python2
Python 2.7.13 (default, Jul 19 2017, 17:41:39)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

4. 检查appium是否安装成功:
    $ sudo npm install appium-doctor -g
    $ appium-doctor
5. 重新安装依赖
    $ brew upgrade Carthage
    $ brew unlink libimobiledevice
    $ brew install libimobiledevice --HEAD

    $ brew install ios-deploy

$ gem install xcpretty

 

6. 更新XCUItest driver - WebDriverAgent

官网下载最新的WebDriverAgent:https://github.com/facebook/WebDriverAgent

将文件夹覆盖原来的WebDriverAgent,自动签名/手动签名参照:https://blog.csdn.net/yinshuilan/article/details/80626314

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值