Appium iOS 错误 Could not find a device to launch 解决方法
2015-02-05 18:09
399 查看
Appium iOS 错误 Could not find a device to launch 解决方法
Appium 点击 Launch 按钮 报错:
error: Could not find a device to launch. You requested 'iPhone 6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA] (8.1 Simulator)',
but the available devices were: ["iPad 2 (7.1 Simulator) [DE208220-ED2F-44B6-BC7B-5471A0DF052E]","iPad 2 (8.1 Simulator) [533E865E-63AF-48C1-999F-2DB4C9202085]","iPad Air (7.1 Simulator) [BE3C2351-AFDC-4CE6-8642-6D6EDE401859]","iPad Air (8.1 Simulator) [9236FD38-9029-48DD-A91D-B63AE925D4A5]","iPad
Retina (7.1 Simulator) [A6D3ED06-746D-467A-9CC1-ADC3251F185A]","iPad Retina (8.1 Simulator) [EB2B7995-603E-4F4D-BE75-0B43FE408CE9]","iPhone 4s (7.1 Simulator) [1071E759-3A14-4AA8-B6A6-DF861F29012A]","iPhone 4s (8.1 Simulator) [5FB6CBD8-D7FD-4823-BFB3-2B53522D26EA]","iPhone
5 (7.1 Simulator) [5C5FA830-F43D-4EE8-97D1-578797D9A2A3]","iPhone 5 (8.1 Simulator) [D2C40286-0585-4251-A8A4-85887A588E62]","iPhone 5s (7.1 Simulator) [716A7516-D590-43E3-B0EE-B2393AB159AB]","iPhone 5s (8.1 Simulator) [30AB59DA-3407-4EAC-8D74-3B6D21EF4B6C]","iPhone
6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA]","iPhone 6 Plus (8.1 Simulator) [125E7974-D61E-4B40-BB25-1C74FDD7B432]"]
根据错误提示
请求的是 iPhone 6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA] (8.1 Simulator),而实际 是 iPhone 6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA]
原因是 appium在force device时,多加了个字符串"(8.1 Simulator)",所以报错。
解决的方法
修改
/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios 目录下ios.js 文件
找到 iosDeviceString += " (" + reqVersion + " Simulator)" 行 改成 iosDeviceString +="";
重新Launch 问题解决。
Appium 点击 Launch 按钮 报错:
error: Could not find a device to launch. You requested 'iPhone 6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA] (8.1 Simulator)',
but the available devices were: ["iPad 2 (7.1 Simulator) [DE208220-ED2F-44B6-BC7B-5471A0DF052E]","iPad 2 (8.1 Simulator) [533E865E-63AF-48C1-999F-2DB4C9202085]","iPad Air (7.1 Simulator) [BE3C2351-AFDC-4CE6-8642-6D6EDE401859]","iPad Air (8.1 Simulator) [9236FD38-9029-48DD-A91D-B63AE925D4A5]","iPad
Retina (7.1 Simulator) [A6D3ED06-746D-467A-9CC1-ADC3251F185A]","iPad Retina (8.1 Simulator) [EB2B7995-603E-4F4D-BE75-0B43FE408CE9]","iPhone 4s (7.1 Simulator) [1071E759-3A14-4AA8-B6A6-DF861F29012A]","iPhone 4s (8.1 Simulator) [5FB6CBD8-D7FD-4823-BFB3-2B53522D26EA]","iPhone
5 (7.1 Simulator) [5C5FA830-F43D-4EE8-97D1-578797D9A2A3]","iPhone 5 (8.1 Simulator) [D2C40286-0585-4251-A8A4-85887A588E62]","iPhone 5s (7.1 Simulator) [716A7516-D590-43E3-B0EE-B2393AB159AB]","iPhone 5s (8.1 Simulator) [30AB59DA-3407-4EAC-8D74-3B6D21EF4B6C]","iPhone
6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA]","iPhone 6 Plus (8.1 Simulator) [125E7974-D61E-4B40-BB25-1C74FDD7B432]"]
根据错误提示
请求的是 iPhone 6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA] (8.1 Simulator),而实际 是 iPhone 6 (8.1 Simulator) [07F2CEAD-3639-4B25-BEDB-E25927D752FA]
原因是 appium在force device时,多加了个字符串"(8.1 Simulator)",所以报错。
解决的方法
修改
/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios 目录下ios.js 文件
找到 iosDeviceString += " (" + reqVersion + " Simulator)" 行 改成 iosDeviceString +="";
重新Launch 问题解决。
相关文章推荐
- This application failed to start because it could not find or load the Qt platform plugin “windows”错误解决方法
- “Could not format discriminator value to SQL string...”错误的解决方法
- Hibernate继承映射的“Could not format discriminator value to SQL string”错误解决方法
- 安装MyEclipse时,双击安装包后出现“could not find main class”的错误提示的解决方法
- yii框架:CDbConnection failed to open the DB connection: could not find driver的解决的方法
- Could not allocate CursorWindow size due to error -12 错误解决方法
- could not find virtual device named 'XXX' 的解决方法
- Hibernate继承映射的“Could not format discriminator value to SQL string”错误解决方法
- Hibernate继承映射的“Could not format discriminator value to SQL string”错误解决方法
- Could not allocate CursorWindow size due to error -12 错误解决方法
- Could not allocate CursorWindow size due to error -12 错误解决方法
- JBoss错误:"Could not obtain connection to any of these urls"的解决方法
- "Could not find mime type application octet-stream"错误的解决方法
- Eclipse中使用SVN连接Google Code 报could not connect to server错误解决方法
- 当eclipse导入工程时报"The builder launch configuration could not be found"错误时的解决方法
- "无法启动Web服务器。Web服务器无法找到请求的资源" 或 "unable to start debugging on the web server.the web server could not find the request"解决方法
- dependency.rb:247:in `to_specs': Could not find rake (>= 0) amongst 的解决方法
- qt程序运行在树莓派错误解决This application failed to start because it could not find or load the Qt platform plu
- Failed to apply plugin [id 'com.android.application'] 和 Could not find com.android.tools.build:gradle:2.XX的最正确的解决方法
- IIS错误解决方法:The specified module could not be found、访问 IIS 元数据库失败