Help - error: [REMOTE] Could not connect to WebKitRemoteDebugger server

Hi

I am trying to switch context with Java after launching Safari with Safari Browser on a iPhone. When i try the driver.getContextHandles(); method I get the following error below in Appium:
error: [REMOTE] Could not connect to WebKitRemoteDebugger server

I have tried looking through quite a few of the forums posts and they all suggest launching ios-webkit-debug-proxy with the launcher as below:
ios-webkit-debug-proxy-launcher.js -c udid:27753 –d

I’ve tried this and this has not resolved my issue. I am still getting the error with Appium.

I’ve been battling with this issue for over a week. Can some one please assist with this issue?

Thanks
Ash