Using Appium Safari testing, could not connect to WebKitRemoteDebugger server

I want to test safari on real device (ipad), below are my configurations:

  1. Mac os: 10.10; xCode: 6.1
  2. Appium 1.3.1 (install using npm)
  3. SafariLauncher, I got the source from github and sign it with my developer signature, and has installed to my iPad
  4. iOS-webkit-debug-proxy, I have installed it using brew command, and run it using command “iOS_webkit_debug_proxy” (i’m not sure whether this command is right)
  5. My capabilities:
    capabilities.setCapability(“platformName”, “iOS”);
    capabilities.setCapability(“platformVersion”, “7.1.2”);
    capabilities.setCapability(“deviceName”, “iPad”);
    capabilities.setCapability(“udid”,“xxxxx”);
    capabilities.setCapability(“app”, “com.sas.safarilauncher”);
    driver = new AppiumDriver(new URL(“http://127.0.0.1:4723/wd/hub”),capabilities);
  6. My test cases:
    e.g. driver.findElement(By.xpath(//xxx/xx/xxx)).click();

When the test case is running, the ‘SafariLauncher’ is launched, and the mobileSafari is opened, but from the log I notice that “error: [REMOTE] Could not connect to WebKitRemoteDebugger server”.

and the test case is not excited, e.g. I could not see the click method on screen, seems the device is not receive the command.

I’m not very clear how to use the iOS-webkit-debug-proxy with Appium for Safari testing on real device? and how to config it? any feedback is appreciated, thanks!