Skip to content

Instantly share code, notes, and snippets.

@lablnet
Last active April 2, 2024 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lablnet/044d47166a43b3b09dc20940eee72eac to your computer and use it in GitHub Desktop.
Save lablnet/044d47166a43b3b09dc20940eee72eac to your computer and use it in GitHub Desktop.
What are the steps to launch the iOS Simulator as an iPad Pro and other model using the open command in the Terminal?

To open the iOS Simulator as an iPad Pro or other using the open command, you can follow these steps:

  • First, ensure that Xcode is installed on your Mac, as it includes the iOS Simulator.
  • Open the Terminal app.
  • Use the xcrun simctl list command to get a list of available devices and find the identifier for the iPad Pro model you want to simulate.
  • Use the open command with the -a flag to launch the Simulator app, and then specify the device type with the --args flag and -CurrentDeviceUDID followed by the device identifier. Here's a general example of the command:
open -a Simulator --args -CurrentDeviceUDID YOUR-DEVICE-ID

Replace YOUR-DEVICE-ID with the actual device identifier for the iPad Pro or Iphone model you obtained from the list.

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