Skip to content

Commit f8a5957

Browse files
committed
fix(apple): support non-unique UDIDs
1 parent f2162d5 commit f8a5957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/vendor-apple/ios/src/main/kotlin/com/malinskiy/marathon/apple/ios/device/AppleSimulatorProvider.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ class AppleSimulatorProvider(
328328
}
329329

330330
private fun connect(transport: Transport, device: AppleSimulatorDevice) {
331-
devices.put(device.udid, device)
331+
//Should not use udid as key here to support multiple devices with the same udid across transports
332+
devices.put(device.serialNumber, device)
332333
?.let {
333334
logger.error("replaced existing device $it with new $device.")
334335
dispose(it)

0 commit comments

Comments
 (0)