Automatically detect UDID from multiple iOS devices

Hello,

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 https://github.com/appium/appium-xcuitest-driver/blob/master/lib/utils.js#L31-L34

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: