# iOS Previous Simulator Builds When Targeting Latest Xcode in Stack

**URL:** https://discuss.bitrise.io/t/ios-previous-simulator-builds-when-targeting-latest-xcode-in-stack/15688
**Category:** Tooling Issues
**Created:** [February 8, 2021, 9:36pm UTC](https://discuss.bitrise.io/t/ios-previous-simulator-builds-when-targeting-latest-xcode-in-stack/15688 "2021-02-08T21:36:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mikeberlin-vin](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mikeberlin-vin](https://discuss.bitrise.io/u/mikeberlin-vin)
#### Post date: [February 8, 2021, 9:36pm UTC](https://discuss.bitrise.io/t/ios-previous-simulator-builds-when-targeting-latest-xcode-in-stack/15688/1 "2021-02-08T21:36:55Z")

</div>

I am using the Xcode Build for Simulator step to create simulator builds for our automation test engineers that can be uploaded to SauceLabs for automation testing. SauceLabs usually takes a bit before they support the latest version of iOS simulators and therefore we need to target older versions of iOS for these (eg they currently only support 14.0 and 14.3). I noticed that when I target Xcode 12.4 in the stack this step cannot find 14.3 simulators (assuming because only 14.4 simulators are installed on this stack). However, if I target Xcode 12.3 in the stack it finds them.

How can we configure the stack offerings to have all major versions of the iOS simulators downloaded so I am able to target whatever version I’d like to compile against (eg target Xcode 12.4 but create a build for iOS 14.3 simulators). Having a dependency like this will prevent us from staying on the latest Xcode stack when building our device builds.

Goal:  
Workflow Stack Target: Xcode 12.4  
Device build against iOS 14.4  
Simulator build against iOS 14.3

I hope this all makes sense. Please let me know if I can provide any more information to clear it up.

Thanks,  
Mike

---

<div class="post-metadata">

### Author: ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)
#### Post date: [February 9, 2021, 9:11pm UTC](https://discuss.bitrise.io/t/ios-previous-simulator-builds-when-targeting-latest-xcode-in-stack/15688/2 "2021-02-09T21:11:35Z")

</div>

You can find out what is pre-installed on each stack by reviewing the [system reports](https://github.com/bitrise-io/bitrise.io/tree/master/system_reports). In general, I believe we install the prebuilt versions provided by Apple. If you need a version that is not installed, you will need to add a script step and create it. Here is an example:

_To create simulator for iPad Pro 10.5 inch for Xcode 11.3 stack:_

_xcrun simctl create “iPad Pro (10.5-inch)” com.apple.CoreSimulator.SimDeviceType.iPad-Pro–10-5-inch- com.apple.CoreSimulator.SimRuntime.iOS-13-3_

Hope this helps,

Cathy

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)
#### Post date: [March 11, 2021, 9:11pm UTC](https://discuss.bitrise.io/t/ios-previous-simulator-builds-when-targeting-latest-xcode-in-stack/15688/3 "2021-03-11T21:11:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
