Parallel iOS Real-Device Sessions Disconnect Immediately (2 Devices, Two Xcode Installations, Automation Runner Mode) #16
Replies: 2 comments · 11 replies
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
|
I have some ideas, but they need time for verification. It would also make sense to see the server logs with showXcodeLog option enabled |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Hi @mykola-mokhnach,
[XCUITestDriver@16e9] Session created with session id: d8beb903-1b4d-4dbd-b9d2-52eb3c18649a |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
XCUITest driver 10.17.1 would help. |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
|
Okay now I'll use XCUITest driver 10.17.1 and share the results with you. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Hello @KazuCocoa,
[XCUITestDriver@0d9e] Session created with session id: c88eb93c-fcd9-4170-b638-aacb8337ef7e |
Beta Was this translation helpful? Give feedback.
All reactions
-
It looks like codesigning is not properly configured for Xcode. Please make sure you can build the project manually using the given certificate. You may also try to enable automatic signing by setting allowProvisioningUpdates as mentioned in the error message above |
Beta Was this translation helpful? Give feedback.
All reactions
-
my capabilities{ my baseclasspackage com.sdkApp.automation.BaseTest; import com.fasterxml.jackson.databind.JsonNode; import java.io.File; public class IOSBaseTest { } terminal Logs[BaseDriver] The 'waitForQuiescence' capability has been deprecated and must not be used anymore. Please check the driver documentation for possible alternatives. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I assume the error message above is pretty clear. What exactly needs to be clarified? |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Yes, the error is clear, but I’m still facing the same issue. Could you suggest any changes or let me know what might be causing the failure? [XCUITestDriver@0941] The following provided capabilities were not recognized by this driver: |
Beta Was this translation helpful? Give feedback.
All reactions
-
Your sessions tried to connect to the same
https://appium.github.io/appium-xcuitest-driver/latest/guides/parallel-tests/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I’m trying to run two parallel Appium sessions against two real iPhones using TestNG. Both phones are physically connected over USB, each mapped to a different Xcode installation, and I’m running automation via Automation Runner Mode.
Both devices are detected, WDA signing begins, unique ports are allocated, and two separate Appium local servers start fine. However, as soon as the sessions initialize, both devices disconnect immediately from Xcode, the sessions fail, and no tests run. macOS logs show the devices detaching.
This issue is blocking my ability to run parallel iOS automation on real hardware, and I really need help understanding whether this setup is expected to work or if I’m missing a configuration step or workaround. Any guidance, confirmations, or insights would be extremely appreciated.
I’m not sure if this is a known limitation when using:
_- multiple Xcode installs
I expected the two sessions to run independently, but instead both phones drop connection simultaneously.
Below is my setup:
TestNG Suite
Base Test
package com.sdkApp.automation.BaseTest;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.ios.options.XCUITestOptions;
import io.appium.java_client.service.local.;
import io.appium.java_client.service.local.flags.GeneralServerFlag;
import org.testng.ITestResult;
import org.testng.annotations.;
import java.io.File;
import java.net.ServerSocket;
import java.util.HashMap;
public class IOSBaseTest {
protected void createDriver(JsonNode cfg) throws Exception {
options.setCapability("xcodeOrgId", "**");
options.setCapability("xcodeSigningId", "i");
// Unique WDA per device
options.setUpdatedWdaBundleId("com.truvideo.wda." + udid);
// Parallel-safe settings
options.setUseNewWDA(true);
options.setDerivedDataPath(derivedDataPath);
options.setWdaLocalPort(wdaPort);
options.setMjpegServerPort(mjpegPort);
}
}
Beta Was this translation helpful? Give feedback.
All reactions