appium初学者,使用之检查appium环境报错Could not detect Mac OS X Version from sw_vers output: '10.12.1’,

这个问题存在的原因就是appium不兼容最新的mac10.12版本。

由于10.12是最新mac版本,appium1.5.3并未提供支持,所以:

在终端输入grep -rl "Could not detect Mac OS X Version from sw_vers output:" /Applications/Appium.app/找出包含的文件并修改版本号。

通过以上命令可以看到以下4个文件中需要修改版本号,加上 ‘10.12‘,有些资料需要去掉后面的空格,加上trim()函数,如果未输入空格,不用此函数亦可,我没加上此函数:

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
span.s1 { }

yuancandeMacBook-Pro:~ yuancan$ grep -rl "Could not detect Mac OS X Version from sw_vers output:" /Applications/Appium.app/

/Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/build/lib/system.js

/Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/lib/system.js

/Applications/Appium.app//Contents/Resources/node_modules/appium-support/build/lib/system.js

/Applications/Appium.app//Contents/Resources/node_modules/appium-support/lib/system.js

修改方法如下:

http://stackoverflow.com/questions/40129794/how-to-fix-error-could-not-detect-mac-os-x-version-from-sw-vers-output-10-12

总结一下就是,在终端输入命令,找到对应位置的文件位置,并在相应的版本号之后增加‘10.12‘即可

appium初学者,使用之检查appium环境报错Could not detect Mac OS X Version from sw_vers output: '10.12.1’,

时间: 2024-08-06 17:19:15

appium初学者,使用之检查appium环境报错Could not detect Mac OS X Version from sw_vers output: '10.12.1’,的相关文章

解决appium 连接真机Android 9启动报错.....shell "ps 'uiautomator'

好久没有使用Appium了,感觉要从头开始了,正好换个电脑要重新装环境,装环境就不描述了,照着网上的资料就可以了,问题就出现在连接真机,手机是Android9,vivoZ5x,启动APP时候始终报错,提示....shell "ps 'uiautomator'. 网上搜了很多,但是如下的解决版本亲测有效. 在appium的安装目录,找到该目录下C:\soft\Appium\node_modules\appium\node_modules\appium-adb\lib的 adb.js 文件 1.找到

LR使用Java User协议环境报错Please add the <JDK>\bin to the path and try again

看标题报错信息就知道,这是java编译及运行环境配置问题,运行LR脚本时,LR代理找不到java的JDK环境,当然,可能有人会遇到说,我在cmd窗口javac 环境是没问题的呀,是的,这就要看你的jdk是什么版本有关系了,再java -version 看看你的jdk是什么版本,多少位的. 为了彻底解决LR脚本环境运行报错问题,下面步骤如下: 一.配置或重新安装配置java环境变量 具体怎么配置,网上百度有很多,我简单写一下吧(以我自己的电脑配置): 1.JAVA_HOME:C:\Java\jdk

安装grid之前检查配置 ,报错如下

安装grid之前检查配置 ,报错如下 : ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -fixup -verbose Performing pre-checks for cluster services setup Checking node reachability... Check: Node reachability from node "rac1"  Destination Node                      R

Xamarin 示例Standard Controls报错:xamarin Failed to compile interface file. See Build Output for details

Standard Controls 示例下载地址: http://developer.xamarin.com/content/StandardControls/ Xamarin官网上的IOS示例“Standard Controls”编译报错: xamarin  Failed to compile interface file. See Build Output for details 搜索Xamarind 的forums,有几个帖子是关于相同错误信息的,貌似最权威的解答是下面这个: http:/

关于报错:Warning: Cannot modify header information - headers already sent by (output started at

8月5日,第一个项目即将完成,测试时,发现登录功能会出现小问题:记住密码的时候会报错 Warning: Cannot modify header information - headers already sent by (output started at 经过再三在百度上查询,终于查到错误的关键原因:[setcookie之前不可以有html标签内容].导致出现这种错误的方式有很多种,但惟独这种解释最让我理解. (因为百度知道的内容不可以复制了,只能贴出地址,有详细解释)地址[http://z

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: none):

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: none): 原文地址:https://www.cnblogs.com/Zhao159461/p/12629635.html

开发环境无错,部署至测试环境报错“NoSuchMethodError”OR"NoSuchClassError"

背景: 实现一个简单的功能,需要用到jedis的jar包连接Redis.在之前便已经有使用jedis,它的版本比较旧,是2.1的.而新实现的功能,在编码的时候使用的是2.8的.在开发环境完成单元测试后,将编译好的class文件拷贝更新至测试环境.因种种原因,导致功能无法运行,排查后,觉得可能是jedis版本问题.于是,将jedis的版本重新降为2.1.运行,开始报如题错误. 报错: java.lang.NoSuchMethodError   PS:报这个错误的方法或者类明明存在,但是系统就是报这

使用SSMS 2012某些功能在Windows2012 环境报错解决

引用于http://www.sqlcn.com/post/29.html 在Windows Server 2012 + SQL Server 2012环境中,使用SSMS经常会报错如下: The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID  {FDC3723D-1588-4BA3-92D4-42

windows server 2012安装java环境报错 错误代码2

在服务器要用到canal这个工具监测mysql数据库,需要java环境. 在windows服务器安装java环境的时候,一开始安装成功,在安装jre的时候突然报错,试了各种办法都没辙. 因为不需要进行java开发,只需要jre,最终的解决办法,将jre解压到服务器,配置环境变量到path中.canal运行成功 jre下载地址 提取码:ms0t 原文地址:https://www.cnblogs.com/hllxy/p/12515981.html