Prepare to test iOS devices
Prerequisites
-
You need a Mac OS system
-
Make sure you have performed the Base Setup
Xcode and Xcode command line tools
Xcode
-
Check if Xcode is present
-
Check for Xcode and iOS supported versions here
-
Download Xcode from the App Store or the Apple Developer website
-
Open and check Xcode
Xcode Command Line Tools
- Check if Xcode CLT is already available using :
Xcode-select -p
or Xcode-select --print-path
-
If not available, download the command-line tool compatible with your Xcode version from the Apple Developer website
-
Alternatively, you can install the command-line tool for Xcode from terminal using following commands:
Xcode-select --install
sudo Xcode-select -s /Applications/Xcode.app/Contents/Developer
Check available iOS Simulators
Using Xcode
-
Open Xcode on your Mac.
-
Go to the top menu bar and select Xcode Open Developer Tool Simulator
-
On the Simulator menu go to File Open Simulator and choose the iOS simulator device of your choice
Using Terminal
- To get list of all devices and their IDs
- To boot up any available simulator
- To shut down a Simulator