Unable to launch app on iOS device using Windows

Hi,
I try to run my C# tests from PC on real iOS device. I have my device connected to Mac via USB, appium desktop server running on Mac and appropriate IP in my tests in Visual Studio on PC.
The app is signed and provisioning profile is created. I have included xcodesigningid and xcodeorgid in my capabilities.
When I run the test, WebDriverAgent installs on the device and then: Original error: Could not proxy command to remote server. Original error: Error: Invalid protocol: null occurs.
Using useNewWDA nor WebDriverAgentUrl do not help.

Also, typing “curl -X GET http://10.49.216.8:8100/status” manually returns proper output to console.

My caps:
static IOSDriver driver;
[ClassInitialize]
public static void Init(TestContext ctx)
{
DesiredCapabilities cap = new DesiredCapabilities();
cap.SetCapability(“automationName”, “XCUITest”);
cap.SetCapability(“platformName”, “iOS”);
cap.SetCapability(“platformVersion”, “12.1”);
cap.SetCapability(“deviceName”, “iPhone (Test.)”);
cap.SetCapability(“udid”, “9ff1348a867c2be9ff***************”);
cap.SetCapability(“app”, “***************”);
cap.SetCapability(“noReset”, true);
cap.SetCapability(“fullReset”, false);
cap.SetCapability(“shouldUseSingletonTestManager”, true);
cap.SetCapability(“xcodeSigningId”, “iPhone Developer”);
cap.SetCapability(“xcodeOrgId”, “***************”);
driver = new IOSDriver(new Uri(“http://10.49.216.8:4723/wd/hub”), cap, TimeSpan.FromDays(1));

Error:
[2019-04-01 03:55:08][BaseDriver] Event ‘wdaSessionAttempted’ logged at 1554126908892 (15:55:08 GMT+0200 (CEST))

[2019-04-01 03:55:08][XCUITest] Sending createSession command to WDA

[2019-04-01 03:55:08][WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[2019-04-01 03:55:08][WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body

[2019-04-01 03:55:08][WD Proxy] Got an unexpected response: {}

[2019-04-01 03:55:08][XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: Invalid protocol: null). Retrying…

[2019-04-01 03:55:08][XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: Invalid protocol: null Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

[2019-04-01 03:55:08][XCUITest] Quitting and uninstalling WebDriverAgent

[2019-04-01 03:55:08][XCUITest] Shutting down sub-processes

[2019-04-01 03:55:08][XCUITest] Shutting down iproxy process (pid 30811)

[2019-04-01 03:55:08][XCUITest] iproxy exited with code ‘null’

[2019-04-01 03:55:08][XCUITest] Shutting down xcodebuild process (pid 30813)

[2019-04-01 03:55:08][XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’

[2019-04-01 03:55:08][XCUITest] Successfully reset ‘/Users/zew_2_17520/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj’ with bundle id ‘com.facebook.WebDriverAgentRunner’

[2019-04-01 03:55:08][XCUITest] Removing WDA application from device

[2019-04-01 03:55:09][XCUITest] Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: Invalid protocol: null Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

[2019-04-01 03:55:09][XCUITest] at quitAndUninstall (/Users/zew_2_17520/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:488:13)

[2019-04-01 03:55:09][XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.

[2019-04-01 03:55:09][iOSLog] Stopping iOS log capture

[2019-04-01 03:55:09][BaseDriver] Event ‘newSessionStarted’ logged at 1554126909419 (15:55:09 GMT+0200 (CEST))

[2019-04-01 03:55:09][W3C] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: Invalid protocol: null Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.

[2019-04-01 03:55:09][W3C] at quitAndUninstall (/Users/zew_2_17520/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:488:13)

[2019-04-01 03:55:09][HTTP] <-- POST /wd/hub/session 500 141831 ms - 1618

[2019-04-01 03:55:09][HTTP]

Make sure the iproxy utility properly works, so the network requests are correctly redirected to and from localhost on the given port number

curl -X GET http://localhost:8100/status returns everything it should. What else can I check?

Same thing with the simulator on Mac. The app and WebDriverAgent are installed but app does not open.
I also tried to use WireShark to monitor the network but it didnt catch any requests on port 8100.

Both iphone and Mac are on the same network by the way.

Check if it works with appium@beta. Several handy fixes have been made there recently