Last active
October 22, 2015 19:59
-
-
Save nolili/1bb8f1a0c25928b34a3f to your computer and use it in GitHub Desktop.
Get serial number of connected all iOS devices.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is the lang you use ?