Appium appium1.6 如何兼容 ios 9.3 以下的版本

Wang · 2016年12月04日 · 最后由 xiaoyan 回复于 2017年11月07日 · 1243 次阅读

最近在研究 ios 自动化,环境用的是 xcode8 appium1.6
但是在 ios 8 的手机上运行时,appium 报错:
[MJSONWP] Encountered internal error running command: Error: Platform version must be 9.3 or above. '8.4' is not supported.
at XCUITestDriver.start$ (../../lib/driver.js:161:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

而且看 driver.js 代码:
if (this.opts.platformVersion && parseFloat(this.opts.platformVersion) < 9.3) {
throw Error(Platform version must be 9.3 or above. '${this.opts.platformVersion}' is not supported.);
}
对于 ios9.3 以下的也是明确不支持的

那问题来了,对于 ios9.3 以下的版本,如果在 appium 1.6,xcode8 上正常运行起来?

共收到 2 条回复 时间 点赞
songz 回复

绝对是故意的,话说一半,骨鲠在喉。噎回去

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册