大家好,我想在 ipad mini 和 ipad2 上运行 safari,但是一直 LAUNCH 不起来,帮忙看下呀,我用的是 10.8.5+xcode 5.0.2 +appium 0.12.3,不甚感谢

代码:

DesiredCapabilities cap = new DesiredCapabilities();
       cap.setBrowserName("safari");
       //cap.setCapability("version", "7.0");
       //cap.setCapability("device", "iPad Device");//iPhone Simulator
       cap.setCapability("app", "safari");//app.getAbsolutePath()
       //cap.setCapability("launch", "false");
       WebDriver wd = new RemoteWebDriver(new URL("http://0.0.0.0:4723/wd/hub"), cap);
       wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
       wd.quit();

appium 报错:

warn: Could not parse plist file at /var/folders/b8/1vfhv4bx50g84c0brnnqtj9w0000gn/T/1131120-34474-12scrl4/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings

info: Not setting device type since we're connected to a device
info: Starting iOS device log capture via idevicesyslog

info: Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Command failed: 

info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: )","killed":false,"code":1,"signal":null,"origValue":"Command failed: "},"sessionId":null}
POST /wd/hub/session 500 3589ms - 238b


↙↙↙阅读原文可查看相关链接,并与作者交流