Appium:无法找到要启动的设备

时间:2017-01-04 16:46:32

标签: python ios appium

我已将Appium更新为使用Xcode 8.2运行,现在我的测试无法启动模拟器,但出现以下错误:

WebDriverException: Message: A new session could not be created. (Original error: Could not find a device to launch. 
You requested 'iPhone (10.2 Simulator)', but the available devices were: ["iPad Air (10.2) [4002EEFA-F56A-4A1E-850B-C3BF4FD773EA] (Simulator)","iPad Air 2 (10.2) .....

My Appium设置如下:

self.driver = webdriver.Remote(
        command_executor='http://127.0.0.1:4723/wd/hub',
        desired_capabilities={
            'app': app,
            'platformName': 'iOS',
            'deviceName': 'iPhone 7 plus',
            'platformVersion': '10.2'
        })

错误消息显示设备类型的奇怪字符串:' iPhone'而不是iPhone 7 plus"。

1 个答案:

答案 0 :(得分:0)

从Appium 1.6.3降级到1.6解决了问题。