Created
August 4, 2022 00:26
-
-
Save taji-taji/5976739f4454328b787089fbd0a9a3a8 to your computer and use it in GitHub Desktop.
Get UDID of iPhone or iPad
This file contains 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
system_profiler SPUSBDataType -json | jq -r '.SPUSBDataType | .[]._items | select(. != null) | select(.[]._name == "iPhone" or .[]._name == "iPad") | .[].serial_num' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment