我正在尝试使用appch 1.4.14使用XCode 8 beta打开iOS 10模拟器。
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.0");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPad Air");
capabilities.setCapability(MobileCapabilityType.VERSION, "8.0");
capabilities.setCapability(MobileCapabilityType.PLATFORM,"Mac");
capabilities.setCapability("platformName", "iOS");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPad Air");
capabilities.setCapability("sendKeyStrategy","setValue");
capabilities.setCapability("--no-reset", false);
我的appium服务器代码是这样的
CommandLine command = new CommandLine("/Applications/Appium.app/Contents/Resources/node/bin/node");
command.addArgument("/Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium.js", false);
command.addArgument("--address", false);
command.addArgument("127.0.0.1");
command.addArgument("--port", false);
command.addArgument("4723");
//command.addArgument("--no-reset", false);
command.addArgument("--full-reset", true);
command.addArgument("--session-override", true);
我收到以下错误---找不到要启动的设备。你要求'iPhone(10.0模拟器)',但可用的设备是:[“iPad Air(10.0)[762BD271-B724-46DA-8312-4231A1BC4AD3](模拟器)”]
任何形式的帮助都将受到赞赏。
答案 0 :(得分:0)
您必须将 Xcode默认路径设置为Beta版。
使用检查当前路径 xcode-select --print-path
使用更新xcode beta位置路径 sudo xcode-select --switch
答案 1 :(得分:0)
[caps]
platformName = "iOS"
orientation = "PORTRAIT"
platformVersion = "9.3"
deviceName ="iPhone Simulator"
noReset = "true"
automationName = "xcuitest"
appiumVersion = "1.6.0-beta1"
app="/<pathtoapp>/<appname>.app"
[appium_lib]
答案 2 :(得分:-1)