Error get contexts from phonegap

HI ALL
i am trying to run test from visual studio(in window OS) on real device(ipod) that connected mac machine (the appium install and run on the mac computer
this is my code:

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.SetCapability(“deviceName”, “CMAuto iPOD”);
capabilities.SetCapability(“device”, “iPOD”);
capabilities.SetCapability(“udid”, “d672840234733c38cea1bdde9a6c0db84b5ee0ca”);
capabilities.SetCapability(“CapabilityType.VERSION”, “8.1”);
capabilities.SetCapability(“CapabilityType.PLATFORM”, “Mac”);
capabilities.SetCapability(“platformName”, “iOS”);

        capabilities.SetCapability("launchTimeout", "180000");
        String bundle = "com.clicksoftware.ClickMobileCDV";

        capabilities.SetCapability("bundleId", bundle);


        capabilities.SetCapability("app", bundle);

       
         driver = new IOSDriver(capabilities);
        
        driver.Manage().Timeouts().ImplicitlyWait(Env.IMPLICIT_TIMEOUT_SEC);

List str = driver.GetContexts();

i test phone gap(hybrid) when i run the test the phone gap is open but i get error in the getcontext command
in appium:
error: [REMOTE] Could not connect to WebKitRemoteDebugger server

info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command. (Original error: connect ECONNREFUSED)”,“code”:“ECONNREFUSED”,“errno”:“ECONNREFUSED”,“syscall”:“connect”,“origValue”:“connect ECONNREFUSED”},“sessionId”:“adb23988-73f2-4fd2-8178-fedb5aca92f1”}
info: <-- GET /wd/hub/session/adb23988-73f2-4fd2-8178-fedb5aca92f1/contexts 500 7.742 ms - 293

in my code i got exception:
An unknown server-side error occurred while processing the command. (Original error: connect ECONNREFUSED)

i read some topic about WebKitRemoteDebugger i try to install it ,but nothing help

please someone can help me