Check available devices in Xcode
#React Native#Terminal
If you want to see the list of available devices in your Xcode for running in the iOS Simulator, you can do so using the terminal:
xcrun simctl list devices
You'll see something like this:
== Devices ==
-- iOS 15.2 --
iPhone 8 AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 8 Plus AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 11 AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 11 Pro AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 11 Pro Max AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone SE (2nd generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 12 mini AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 12 AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 12 Pro AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 12 Pro Max AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 13 Pro AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 13 Pro Max AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 13 mini AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPhone 13 AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPod touch (7th generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPad Pro (9.7-inch) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPad (9th generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPad Air (4th generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPad Pro (11-inch) (3rd generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPad Pro (12.9-inch) (5th generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
iPad mini (6th generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
-- tvOS 15.2 --
Apple TV AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple TV 4K (2nd generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple TV 4K (at 1080p) (2nd generation) AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
-- watchOS 8.3 --
Apple Watch Series 5 - 40mm AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple Watch Series 5 - 44mm AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple Watch Series 6 - 40mm AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple Watch Series 6 - 44mm AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple Watch Series 7 - 41mm AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Apple Watch Series 7 - 45mm AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA (Shutdown)
Where AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA
is the device's UUID. You can use the UUID to run your app in the iOS Simulator as well.