def _get_default_device(self):
        """Get local default device when no udid.

        Returns:
            Local device udid.
        """
        device_udid_list = TIDevice.devices()
        if device_udid_list:
            return device_udid_list[0]
        raise IndexError("iOS devices not found, please connect device first.")
Get local default device when no udid.

        Returns:
            Local device udid.
        
airtest/core/ios/ios.py