Automatically detect UDID from multiple iOS devices


I was looking at Appium code to find out how Appium detects the UDID automatically (for when capability “udid”: “auto”) is set, and it seems Appium cannot handle finding UDID automatically (from deviceName for example) when there are multiple devices, by looking at

Is that correct ? Is there any other way that Appium can automatically find UDID when there are multiple real iOS devices connected ?

Thank you !

Appium… plz answer this with Android devices also … :slight_smile: