最近在研究 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 上正常运行起来?