
I Tried Running an iOS Simulator on AWS Device Farm #AWSreInvent
This page has been translated by machine translation. View original
Hello, I'm Shunta Toda from the Retail App Co-Creation Department.
During re:Invent 2026, AWS Device Farm became able to run Android emulators and iOS simulators.
The iOS simulator comes with Xcode and normally can only run on a Mac you have on hand. Now you can use it on AWS, from a browser, billed per minute. Considering macOS license restrictions, it's great that iOS can run on AWS.
This article summarizes the results of actually running the Device Farm iOS simulator from the console, along with an explanation, based on the documentation, of "why an iOS simulator can run on AWS."
This is what it's like to use the iOS simulator from a browser
When you start a remote access session in the Device Farm console, an iPhone 16 Simulator (iOS 27.0) screen appears inside your browser.

- You can interact with it about 30 seconds after starting the session
- You can tap and swipe with the mouse, and type text with the keyboard
- No Mac or Xcode needed on your end
- This test took about 4 minutes, and the billable time was 3.51 minutes (about $0.60 after the free trial)
When I opened DevelopersIO in Safari, the page was displayed looking just like on an iPhone.

The difficulty of running an iOS simulator in the cloud
The iOS simulator can only run on a Mac
The iOS simulator is part of Xcode and only runs on macOS. And under Apple's software license agreement, macOS may only be used on Apple-branded hardware. Even when running it as a virtual machine, it is limited to Apple-branded hardware.
For that reason, in a cloud lined with Linux or Windows servers, you can't run an iOS simulator as is. When you wanted to run iOS tests in CI, the usual choices were one of the following:
- Prepare your own Macs and use them as CI runners
- Use a CI service that provides Mac runners
- Rent an Amazon EC2 Mac instance (a Dedicated Host that occupies a whole Mac)
EC2 Mac is the standard way to use macOS within AWS, but to comply with the macOS license, you must reserve a Dedicated Host for at least 24 hours. That's a bit excessive if you just want to check something in a simulator for a few minutes.
Note that Device Farm has long let you use real iOS devices (iPhone / iPad) for remote access and automated testing. What's newly added this time is simulators, not real devices.
Device Farm runs on top of macOS test hosts
The Device Farm documentation describes where iOS tests run.
- Device Farm uses Amazon-managed macOS instances (test hosts) for iOS tests
- The current test hosts are
macos_tahoe(macOS Tahoe / arm64) andmacos_sequoia(macOS Sequoia / arm64) - In automated tests, when using an iOS simulator, it only runs on the
macos_tahoetest host
The documentation doesn't state the hardware, or which host is used for remote access (manual operation from the browser). However, simulators only run on macOS, and macOS can only be used on Apple-branded hardware under the license, so it is presumably running on Mac machines managed by Amazon. Device Farm essentially lends out the simulators running on these Macs by the minute.

Here's a comparison of the options for running iOS within AWS.
| EC2 Mac | Device Farm iOS real devices | Device Farm iOS simulators | |
|---|---|---|---|
| What you rent | A Mac (1 unit) | A real iPhone / iPad (1 unit) | A simulator (1 unit) |
| Billing | Per second, but minimum 24 hours | Per minute ($0.17/min) or flat-rate slots | Per minute ($0.17/min) only |
| macOS management | Done by you | Not needed | Not needed |
| How to use | Use freely via SSH, etc. | Remote access and automated testing | Remote access and automated testing |
EC2 Mac offers more freedom, but for uses like "I want to quickly check how an iOS app behaves" or "I want to run UI tests on every PR," the Device Farm simulator is more convenient.
Trying it out
Available simulators
When I filtered by "Simulator" in "Public Devices" in the console, Apple iPhone 16 Simulator was shown in three OS versions. The device type is "Virtual."

| Device | OS | Resolution |
|---|---|---|
| Apple iPhone 16 Simulator | iOS 18.6 / 26.3.1 / 27.0 | 1179 × 2556 |
Currently the only iOS simulator model is the iPhone 16; there are no iPads or models with different screen sizes.
Starting a remote access session
As a prerequisite, Device Farm is used in the us-west-2 (Oregon) region. Sessions are created inside a project, so first create a project for testing. You can create it from "Create mobile project" in the console or from the AWS CLI.
aws devicefarm create-project --name ios-simulator-demo --region us-west-2
Open the project, go to the "Remote access" tab, and click "Create remote access session" to get to the device selection screen. Filtering by "Simulator" shows the three OS versions mentioned earlier in the same list as real devices. This time I chose iOS 27.0.

After that, just click "Confirm and start session" at the bottom of the screen. It progressed through "Finding available device" → "Preparing device" → "Connecting to device," and became "Connected" about 30 seconds after clicking. This figure includes the waiting time while the status changes. It was almost the same as the documentation's statement that "virtual devices for the latest OS are usually available in under 30 seconds."
Checking the screen and features
The home screen had apps such as Fitness and Reminders, plus "WebDriverAgent." It's an app used when operating iOS with Appium, and appears to be prepared so it can be used right away in automated tests.
The left menu lists "Home," "Screenshot," "Rotate," "Set location," "Install app," and so on. Instead of the "ADB session" found in Android emulator sessions, there were "Appium session" and "Appium URL."
Opening "General > About" in the Settings app showed it recognized as an iPhone 16 running iOS 27.0.

Capacity was shown as 96.11 GB. Since the simulator uses the host's disk, this is probably the size of the disk of the Mac it's running on.
"Time left" at the top right of the screen started at 2 hours 30 minutes. The documentation also states that a single session is at most 150 minutes.
Cleaning up
When you're done, stop the session with "Stop session" at the top right. The session times out after 5 minutes of no operation from either the console or Appium, but billing continues until then, so stop it immediately when finished.
Checking with the AWS CLI, the device time for this session was 3.74 minutes, of which the billable (metered) portion was 3.51 minutes. This falls within the new account free trial, but after the trial it would be $0.17 × 3.51 minutes, or about $0.60.
aws devicefarm list-remote-access-sessions --arn "<プロジェクト ARN>" --region us-west-2 \
--query 'remoteAccessSessions[].{status:status,minutes:deviceMinutes}'
Finally, I deleted the project used for testing.
aws devicefarm delete-project --arn "<プロジェクト ARN>" --region us-west-2
Comparing with a real iPhone 16
To see what differs between the simulator and a real device, I also opened a session on a real Apple iPhone 16 (iOS 26.0) with the same steps. When filtering by "iPhone 16" on the device selection screen, the simulator (Virtual) and the real device (Physical) appear in the same list.

The results are as follows.
| Simulator (iOS 27.0) | Real device (iOS 26.0) | |
|---|---|---|
| From "Confirm and start session" until you can interact | About 30 seconds | About 80 seconds |
| Billable time (with similar amount of use) | 3.51 minutes | 3.62 minutes |
| Left menu | No "Network settings" | Has "Network settings" |
| Home screen apps | Standard apps such as Fitness, Reminders, Contacts | Phone, Safari, and Device Farm apps (NetworkDetector, SafariCleaner, etc.) |
| Management status | Not shown | Shows "Supervised and managed by Amazon Corporate LLC" |
| Capacity | 96.11 GB (host disk) | 128 GB (the device itself) |
| Status bar | Wi-Fi and battery only | No SIM (SOS), charging |
The real device takes longer to start
The real device stalled for about a minute at the "Preparing device" stage and took about 80 seconds until I could interact. The simulator took about 30 seconds, so there's a 2–3x difference.
On a real device, you can change network quality
The real device session had "Network settings," which the simulator didn't. You can specify profiles such as "3G Average" or bandwidth, latency, and packet loss to check how the app behaves in slow network conditions.

The real device is a genuine iPhone managed by Amazon
When I opened the Settings app on the real device, it showed "This iPhone is supervised and managed by Amazon Corporate LLC." The capacity was also the device's own 128 GB, not the host's disk like the simulator.

Display in Safari is the same on both
When I opened DevelopersIO, it looked almost the same on the simulator and the real device. If you only want to check layout, the simulator seems fine.
Note that after stopping the real device session, cleaning up the device took a few minutes, during which I couldn't delete the project (this wasn't included in the billable time).
Caveats
The iOS simulator is pay-as-you-go only
Android emulators can also be used with flat-rate device slots (unmetered), but the iOS simulator is pay-as-you-go ($0.17/min) only. Device Farm has a one-time free trial per account, currently 1,000 minutes for a limited period (normally 250 minutes).
VPC endpoint connections are not supported
The developer guide states that virtual devices do not support VPC endpoint connections for reaching resources inside a VPC. This may mean you can't use them to check apps that call internal APIs.
Device Connect is Android only
For Android, Device Connect, which lets you use cloud devices from your local adb, has been added, but it doesn't support iOS. The iOS simulator is used by operating it in the browser or in automated tests.
You need a Mac to build the app
You don't need a Mac to use the simulator, but if you want to install and check your own app, you need Xcode to create the build. Even without a Mac at hand, you can build on GitHub Actions macOS runners (such as runs-on: macos-latest, which come with Xcode), so you can split the work as "build on GitHub Actions, verify on Device Farm."
Appium tests require specifying the test host and headless mode
When using the simulator in a custom test environment for automated tests, the simulator only runs on macos_tahoe, so specify ios_test_host: macos_tahoe in the test spec. In addition, Appium tests require appium:isHeadless to be true; the documentation states that if you don't specify it, session creation fails with the error Simulator.app does not exist (I didn't try automated tests this time).
Here is an excerpt of only the parts to change, from the documentation's example. In practice, you modify these two points based on the default iOS test spec generated by the console.
ios_test_host: macos_tahoe
# Add to the capabilities when starting Appium in the pre_test phase
# "appium:isHeadless": true
Impressions
You can check iOS screens without a Mac
Using only a browser, I could get an iPhone simulator ready about 30 seconds after starting the session. It looks useful for team members using Windows or Linux who want to check how things look on iOS.
Starts faster than real devices, so it's easy to build into test workflows
The real iPhone 16 I tried took about 80 seconds until I could interact. The simulator is ready in about 30 seconds, so it seems like it can be used extensively when building it into workflows that start many times, such as tests for each PR.
You can use it for just a few minutes within AWS
This test took about 4 minutes. Unlike EC2 Mac, there was no need to pay for 24 hours, and I only paid for what I used, within my usual AWS account.
You can choose real devices and simulators on the same screen
On the remote access creation screen, real devices and simulators are listed together. You can use the simulator, which starts immediately, for visual checks, and a real device for checks under slow network conditions or final verification, just by choosing a different device.
Summary
With AWS Device Farm, iOS simulators can now be selected from the same list as real devices. Because of macOS license restrictions, running an iOS simulator within AWS previously required reserving an EC2 Mac Dedicated Host for at least 24 hours. With Device Farm, the simulator runs on Amazon-managed macOS test hosts, and you can use it by the minute.
Please give it a try as an option for when team members without a Mac want to check how an iOS app looks, or when you want to run iOS UI tests on every PR!
References