无法启动Appium Inspector,无法启动新会话

时间:2015-01-06 09:39:50

标签: ios appium

info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1","iOSSDKVersion":"8.1","deviceName":"iPhone 4s (DF6FC842-2BC2-4E50-B4C2-21B0DB2EEDEA)","platformVersion":"7.1"}
info: [debug] fixDevice is on

info: [debug] Final device string is: 'iPhone 4s (DF6FC842-2BC2-4E50-B4C2-21B0DB2EEDEA) (7.1 Simulator)'
info: [debug] Cleaning up appium session
error: Could not find a device to launch. You requested 'iPhone 4s (DF6FC842-2BC2-4E50-B4C2-21B0DB2EEDEA) (7.1 Simulator)', but the available devices were: ["iPhone 4s (7.1 Simulator) [45947AC6-A891-4B82-964A-757F73C952C1]","iPhone 4s (8.1 Simulator) [DF6FC842-2BC2-4E50-B4C2-21B0DB2EEDEA]","iPhone 5 (7.1 Simulator) [30810E10-6B35-468B-AE92-D6FBA6F43E17]","iPhone 5 (8.1 Simulator) [E1486B80-A4BF-45E2-9DA8-74EC32C2E012]","iPhone 5s (7.1 Simulator) [B3B1B343-5E89-4524-99FF-103F243FDAD0]","iPhone 5s (8.1 Simulator) [7B10F468-8F0E-4133-BB2D-8CFE003C8971]","iPhone 6 (8.1 Simulator) [C5876900-7406-4272-95FF-71688E26378D]","iPhone 6 Plus (8.1 Simulator) [E834C92E-7FE4-418F-B9E3-CDEEE2A9B4BC]"]

2 个答案:

答案 0 :(得分:3)

我还在Appium Github的论坛中找到了另一个解决方案,它不仅帮助了我。删除模拟器名称的长字符串部分,例如,在您的情况下将iPhone 4s(DF6FC842-2BC2-4E50-B4C2-21B0DB2EEDEA)更改为iPhone 4s。希望这也有帮助。

答案 1 :(得分:0)

我有同样的问题,经过5-6天后,我发现我没有在xcode中下载该模拟器。您要求在iOS 7.1上运行iPhone 4s,但您还没有下载(我猜)。或尝试下载它,或尝试请求可用的模拟器,如iPhone 5在7.1上工作。 希望这有助于=)