# Defining which stack to use in the yml file?

**URL:** https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882
**Category:** Question & Answer
**Tags:** ios, build-config
**Created:** [October 2, 2017, 9:42pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882 "2017-10-02T21:42:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![bsarrazin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bsarrazin/32/628_2.png) [@bsarrazin](https://discuss.bitrise.io/u/bsarrazin)
#### Post date: [October 2, 2017, 9:42pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/1 "2017-10-02T21:42:32Z")

</div>

How do you define which stack to use in the bitrise.yml file?  
I couldn’t find anything in the documentation…  
[http://devcenter.bitrise.io/infrastructure/available-stacks/](http://devcenter.bitrise.io/infrastructure/available-stacks/)

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [October 3, 2017, 10:04am UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/2 "2017-10-03T10:04:09Z")

</div>

That’s not possible yet @bsarrazin, please vote on the related #Feature Requests :

> [@Parallel Builds: trigger multiple workflows (builds) at the same time - build stages - fan-out fan-in support](http://discuss.bitrise.io/t/parallel-builds-seperate-stacks-for-seperate-workflows-trigger-multiple-workflows-builds-at-the-same-time/410):
>
> Useful for cordova repos, so I don’t have to configure two bitrise apps for one client

---

<div class="post-metadata">

### Author: ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)
#### Post date: [October 3, 2017, 5:12pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/3 "2017-10-03T17:12:54Z")

</div>

I would said that it is possible but not directly.  
You can create separate apps for each stack and additional app which will trigger appropriate builds using [build trigger api](http://devcenter.bitrise.io/api/build-trigger/) depending on something you can set in bitrise.yml.

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [October 3, 2017, 5:18pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/4 "2017-10-03T17:18:10Z")

</div>

That’s of course possible, and thanks for the note @koral! Long term though it’d be great to be able to specify the stack in the yml, e.g. if you want to test only one branch on a new Xcode version for example; that’s quite a bit of work right now, so please vote on the linked #feature-request too if you’d like a streamlined / built in solution! 😉

---

<div class="post-metadata">

### Author: ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)
#### Post date: [October 3, 2017, 7:34pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/5 "2017-10-03T19:34:12Z")

</div>

I’ve already voted, several weeks ago 😉

---

<div class="post-metadata">

### Author: ![bsarrazin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bsarrazin/32/628_2.png) [@bsarrazin](https://discuss.bitrise.io/u/bsarrazin)
#### Post date: [October 3, 2017, 9:00pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/6 "2017-10-03T21:00:38Z")

</div>

Voted! And asked my team to vote too!

---

<div class="post-metadata">

### Author: ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)
#### Post date: [October 4, 2017, 8:23am UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/7 "2017-10-04T08:23:18Z")

</div>

Thanks @koral & @bsarrazin! 🙂

---

<div class="post-metadata">

### Author: ![limfinity](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@limfinity](https://discuss.bitrise.io/u/limfinity)
#### Post date: [October 30, 2020, 11:35am UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/8 "2020-10-30T11:35:09Z")

</div>

2020 and I still have the same wish, can’t seem to follow the Link. ✌  
Was there some action on this? 🙂

---

<div class="post-metadata">

### Author: ![stherold](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/stherold/32/446_2.png) [@stherold](https://discuss.bitrise.io/u/stherold)
#### Post date: [January 25, 2022, 2:27pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/9 "2022-01-25T14:27:14Z")

</div>

Any progress on this topic?

---

<div class="post-metadata">

### Author: ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)
#### Post date: [January 25, 2022, 2:50pm UTC](https://discuss.bitrise.io/t/defining-which-stack-to-use-in-the-yml-file/2882/10 "2022-01-25T14:50:31Z")

</div>

Option to select stack in XML is available now: [Setting the stack for your builds - Bitrise Docs](https://devcenter.bitrise.io/en/builds/configuring-build-settings/setting-the-stack-for-your-builds.html#setting-the-default-stack-on-the-stack-tab)
