Skip to content

Instantly share code, notes, and snippets.

@emilstahl
Created January 17, 2016 09:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilstahl/00cc0c87bff5674e26ed to your computer and use it in GitHub Desktop.
Save emilstahl/00cc0c87bff5674e26ed to your computer and use it in GitHub Desktop.
Get iOS device UDID in terminal
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2}'
@crespoxiao
Copy link

not working for xcode9

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