If you don’t see the device type with the operating system version you want to test in Simulator, you can create a custom configuration using the Devices and Simulators window. The new simulator will appear in the run destination of the scheme menu in the toolbar.
Open the Devices and Simulators window (choose Window > Devices and Simulators), then click Simulators.
In the lower-left corner, click the Add button (+).
In the sheet that appears, enter a simulator name, choose a device type, and choose an operating system version.
If you don’t see the operating system version you want to use, choose “Download more simulator runtimes.”
The Components preferences opens where you can download and install simulator runtimes.
Click Create.