Skip to content

Instantly share code, notes, and snippets.

@nolili
Last active October 22, 2015 19:59
Show Gist options
  • Save nolili/1bb8f1a0c25928b34a3f to your computer and use it in GitHub Desktop.
Save nolili/1bb8f1a0c25928b34a3f to your computer and use it in GitHub Desktop.
Get serial number of connected all iOS devices.
# install mobiledevice[https://github.com/imkira/mobiledevice] by homebrew, first
result = `mobiledevice list_devices`
result.lines do |device|
deviceUDID = device.chomp
print(`mobiledevice get_device_prop -u #{deviceUDID} SerialNumber`)
end
@Noor-ALHassan
Copy link

what is the lang you use ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment