我最近装了一个 xcode 6.0.1,自带了 sdk 8.0 ,然后用 appium 启动测试应用,提示报错
暂时无法复制,截图显示
请高手指定迷津!
看 log
#1 楼 @lihuazhang 我找出来的的目的有点不一致哦。
#2 楼 @wangcityboy 是不一致,之前有提到过,你需要把两个路径标识成一样的
#5 楼 @wangcityboy 嗯,所以我记得我听说 8.0 不支持的说
#7 楼 @seveniruby 那怎么设置才不至于报错呢?
最新的版本也不支持 iOS8,等 1.3 吧
至于模拟器的地址,GUI 中如何设置不清楚(找了一圈没找到),在 Command Line 下可以使用 --app 参数来指定
#7 楼 @seveniruby 我去看下,也许 docs 是先更新了
我是安裝 appium 1.3.0-beta1 可以用
安裝指令: npm install -g appium@1.3.0-beta1
然後開啟 appium 時指定版本: appium -a 127.0.0.1 -p 4725 --platform-version 8.0
腳本內也指定版本: set.setCapability("platformVersion","8.0");
就可以正常運行了,至於 1.2.4 我還沒有試過可不可以
Error: Could not find a device to launch. You requested 'iPhone simulator (8.0 Simulator)', but the available devices were: ["iPad 2 (7.1 Simulator) [898ABFD9-E5DF-4143-9EBE-80BFD9B89CA4]","iPad 2 (8.0 Simulator) [0A06BC1A-D2CC-4E09-9A2A-22F9DAB4C110]","iPad Air (7.1 Simulator) [21445BCC-CD01-448C-9363-F8D81AC80269]","iPad Air (8.0 Simulator) [3690169F-B23A-4B0C-A9B9-0DD57D0F0932]","iPad Retina (7.1 Simulator) [D9D71C18-02F0-4141-BFEE-9CFEEB5E9419]","iPad Retina (8.0 Simulator) [DEBBE2FB-5B49-40BD-828B-66983D9C48A8]","iPhone 4s (7.1 Simulator) [A08BD66B-A0B4-48DC-B2FE-42B467BC510B]","iPhone 4s (8.0 Simulator) [48268B44-5CDA-4A08-BAD3-FEC48813D14D]","iPhone 5 (7.1 Simulator) [5097D55F-1AA6-4C52-9C5B-072D7736295F]","iPhone 5 (8.0 Simulator) [06C74D69-6B54-4516-A48E-B92A251B37BD]","iPhone 5s (7.1 Simulator) [730C7F7A-E47F-4312-9CA4-90126FDBCB86]","iPhone 5s (8.0 Simulator) [7D21C1D6-0ADD-4249-8362-AD1087DC6F7F]","iPhone 6 (8.0 Simulator) [0579EF54-DBE7-4CE8-A5F0-BE37E7ACDD96]","iPhone 6 Plus (8.0 Simulator) [AEDEA1F4-CB10-4310-A2BF-6D3A4BCEB91D]"]
我升级后,按照你的方法,提示找不到模拟器,但是实际上本机上有可用的模拟器,如上面的代码
如下为错误的提示:
十月 10, 2014 12:23:52 上午 AppDrivers init25ppInstaller
信息: 测试应用正在iOS模拟器中启动...
十月 10, 2014 12:23:54 上午 AppDrivers init25ppInstaller
信息: 测试应用启动失败...A new session could not be created. (Original error: Could not find a device to launch. You requested 'iPhone simulator (8.0 Simulator)', but the available devices were: ["iPad 2 (7.1 Simulator) [898ABFD9-E5DF-4143-9EBE-80BFD9B89CA4]","iPad 2 (8.0 Simulator) [0A06BC1A-D2CC-4E09-9A2A-22F9DAB4C110]","iPad Air (7.1 Simulator) [21445BCC-CD01-448C-9363-F8D81AC80269]","iPad Air (8.0 Simulator) [3690169F-B23A-4B0C-A9B9-0DD57D0F0932]","iPad Retina (7.1 Simulator) [D9D71C18-02F0-4141-BFEE-9CFEEB5E9419]","iPad Retina (8.0 Simulator) [DEBBE2FB-5B49-40BD-828B-66983D9C48A8]","iPhone 4s (7.1 Simulator) [A08BD66B-A0B4-48DC-B2FE-42B467BC510B]","iPhone 4s (8.0 Simulator) [48268B44-5CDA-4A08-BAD3-FEC48813D14D]","iPhone 5 (7.1 Simulator) [5097D55F-1AA6-4C52-9C5B-072D7736295F]","iPhone 5 (8.0 Simulator) [06C74D69-6B54-4516-A48E-B92A251B37BD]","iPhone 5s (7.1 Simulator) [730C7F7A-E47F-4312-9CA4-90126FDBCB86]","iPhone 5s (8.0 Simulator) [7D21C1D6-0ADD-4249-8362-AD1087DC6F7F]","iPhone 6 (8.0 Simulator) [0579EF54-DBE7-4CE8-A5F0-BE37E7ACDD96]","iPhone 6 Plus (8.0 Simulator) [AEDEA1F4-CB10-4310-A2BF-6D3A4BCEB91D]"]) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.05 seconds
Build info: version: '2.42.2', revision: '6a6995d31c7c56c340d6f45a76976d43506cd6cc', time: '2014-06-03 10:52:47'
System info: host: 'ifufeiyangtekiMac.local', ip: '192.168.235.131', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.4', java.version: '1.8.0'
Driver info: io.appium.java_client.AppiumDriver
十月 10, 2014 12:23:59 上午 IndexTest AlertClose
信息: 关闭提示框出现异常null
可以拉 ios8 的 branch,现在还在 1.3.0 beta1,基本可以支持
楼主解决了这个问题了么,我也碰到类似问题,我的 appium 是 1.3.4 的,但是设置中仍然没有 ios8,请问你的解决方案时什么呢?
#18 楼 @lihuazhang 明白了,谢谢回答