Skip to main content

AS - Connecting An iOS Emulator

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

In addition to working with physical devices, you can also work on simulators to create and run tests.

Prerequisites

A Mac machine with XCode 8+ is required.

Preliminary Setup

Before working with simulators in the studio, the desired simulators must be installed through XCode.

To add a new simulator:

  1. Open XCode.
  2. In the Window menu click Devices.
  3. Click on the + sign at the bottom of the list and then Add Simulator.
  4. Choose a name for your simulator and the iOS version, then click Create.

XCode dialog

To add a new iOS version:

  1. From the Create a new simulator dialog, click on the OS Version box.
  2. Click the arrow next to the versions to download.

XCode dialog

info

Currently, only iOS 10+ is supported by the studio. If there are simulators with lower versions installed, they will not appear in the Studio.

Add simulator in the Studio

  1. Open the Add Device dialog and select iOS device
  2. Select the checkbox 'Show Simulators'
  3. The supported simulators will be listed in the Simulator box (marked in the following image)
  4. Select a simulator from the list
  5. Click OK

The simulator will be booted immediately. The first time a simulator is booted, boot might take up to 10 minutes, because it needs to be set up. Next boots should take about 1 minute, depending on your Mac's specifications.

Booting simulator

Current simulator limitations

  1. Only a single simulator can be on 'Device manager' at a time. The Add Device dialog won't allow adding more simulators if there already is a simulator added.
  2. To use a different simulator, the current simulator must be deleted first from the Device Manager.

Delete simulator

Deleting a simulator from the Device Manager will shut it down. A progress bar will be displayed while the shutdown is in progress.

Simulator Applications

Building applications

iOS simulators running on your Mac run on a different architecture than physical devices. This means regular application files won't work on simulators.

To build your applications for simulators:

  1. Open the application project in XCode.

  2. Click the root file. 

  3. Select a build Target.

  4. Click Build Settings.

  5. Under Architectures, select No in Build Active Architectures Only.

  6. Select a simulator from the devices list.

  7. Click Product → Build.

  8. Take the output file (.app) from the Products folder.

  9. Right-click the application under Products and click Show in Finder.
     This .app file can be used for installation on simulators in the studio.

    Build and output application

Import  Application to Studio

Click Import from the application manager and select the .app application file.

info

Instrumentation is not supported. Web testing on Safari is not supported.