# Alignment of recommended settings with new Xcode projects

**URL:** <https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174>\
**Category:** Ideas\
**Created:** [November 4, 2024, 2:02pm UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174 "2024-11-04T14:02:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![marekfort](https://community.tuist.dev/user_avatar/community.tuist.dev/marekfort/32/8_2.png) [@marekfort](https://community.tuist.dev/u/marekfort)\
**Post date:** [November 4, 2024, 2:02pm UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/1 "2024-11-04T14:02:18Z")

</div>

This conversation was originally flagged on GitHub: [Issues · tuist/tuist · GitHub](https://github.com/tuist/tuist/issues/6983:)

> Should we remove “ALWAYS\_EMBED\_SWIFT\_STANDARD\_LIBRARIES” from essential settings as Xcode 16 recommended to remove it?

@rowwingman, could you share the resource for Xcode 16 recommending to remove it?

That being said, new Xcode doesn’t set this build settings to `YES`. Ideally, Tuist’s recommended settings should mostly align with Xcode’s values for fresh projects, unless we have a strong reason not to be aligned.

The main question for me here is the following: changing the default value of `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` can technically be a breaking change. Should we keep a different default until the next major version of Tuist to keep the settings stable? But since we don’t plan to do a major version of Tuist unless we have a really, really strong reason, that might not happen for possibly years.

Alternatively, we change the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` only for new Tuist projects, but that would add additional complexity on the CLI side for marginal benefits.

I’m leaning to changing the default to align with Xcode and highlighting the change in the release notes. For the majority projects, this change should _not_ be breaking. Thoughts, [@core](https://community.tuist.dev/groups/core)?

---

<div class="post-metadata">

**Author:** ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)\
**Post date:** [November 4, 2024, 2:15pm UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/2 "2024-11-04T14:15:44Z")

</div>

> I’m leaning to changing the default to align with Xcode and highlighting the change in the release notes. For the majority projects, this change should _not_ be breaking. Thoughts, [@core](https://community.tuist.dev/groups/core)?

If the default of new projects is that one, I’d say that we align with them. Can we think of any side-effects of changing the default? We can also put it out in the wild, and hot-fix if it comes with unexpected consequences.

---

<div class="post-metadata">

**Author:** ![marekfort](https://community.tuist.dev/user_avatar/community.tuist.dev/marekfort/32/8_2.png) [@marekfort](https://community.tuist.dev/u/marekfort)\
**Post date:** [November 4, 2024, 3:06pm UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/3 "2024-11-04T15:06:19Z")

</div>

> [@pepicrft](#):
>
> Can we think of any side-effects of changing the default

No, I think it should be a relatively safe change to make.

I created an actionable issue on GitHub: [Align ALWAYS\_EMBED\_SWIFT\_STANDARD\_LIBRARIES with the Xcode default · Issue #6989 · tuist/tuist · GitHub](https://github.com/tuist/tuist/issues/6989)

@rowwingman, would you want to take the lead here and implement the change? 🙂

---

<div class="post-metadata">

**Author:** ![waltflanagan](https://community.tuist.dev/user_avatar/community.tuist.dev/waltflanagan/32/11_2.png) [@waltflanagan](https://community.tuist.dev/u/waltflanagan)\
**Post date:** [November 5, 2024, 3:02am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/4 "2024-11-05T03:02:10Z")

</div>

It might be nice to have some way to capture defaults based on Xcode version longer term. I could see value in haveing a default of something like `.xcode16` which would be updated to `.xcode17` in the future but allow users to stick with prior behavior to allow them to update to a new Tusit version without necessarily needing to take on a migration because defaults changed.

---

<div class="post-metadata">

**Author:** ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)\
**Post date:** [November 5, 2024, 8:43am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/5 "2024-11-05T08:43:34Z")

</div>

I like this idea. @marekfort do you think it’d be costly to maintain?

---

<div class="post-metadata">

**Author:** ![rowwingman](https://community.tuist.dev/user_avatar/community.tuist.dev/rowwingman/32/150_2.png) [@rowwingman](https://community.tuist.dev/u/rowwingman)\
**Post date:** [November 7, 2024, 12:09am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/6 "2024-11-07T00:09:51Z")

</div>

I will check on the weekend

---

<div class="post-metadata">

**Author:** ![marekfort](https://community.tuist.dev/user_avatar/community.tuist.dev/marekfort/32/8_2.png) [@marekfort](https://community.tuist.dev/u/marekfort)\
**Post date:** [November 7, 2024, 8:26am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/7 "2024-11-07T08:26:40Z")

</div>

Not a lot, I think it’s worth exploring and I like the idea as well!

---

<div class="post-metadata">

**Author:** ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)\
**Post date:** [November 7, 2024, 11:29am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/8 "2024-11-07T11:29:28Z")

</div>

This would be amazing @rowwingman 🙏 🚀

---

<div class="post-metadata">

**Author:** ![rowwingman](https://community.tuist.dev/user_avatar/community.tuist.dev/rowwingman/32/150_2.png) [@rowwingman](https://community.tuist.dev/u/rowwingman)\
**Post date:** [November 17, 2024, 11:58pm UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/9 "2024-11-17T23:58:00Z")

</div>

![Screenshot 2024-11-18 at 00.50.55](https://tuist-community-storage.fly.storage.tigris.dev/original/1X/d9225834ef6746db5d0e7ce091a324b709261fad.png)  
Xcode recommend me to remove this setting. I try to remove it like this.

```auto
defaultSettings: .recommended(
    excluding: [
        "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES",
    ]
)

```

However it didn’t work. Maybe the best option in this case will be to make it possible to exclude or maybe remove. As I understand the reason why it doesn’t exclude as “ALWAYS\_EMBED\_SWIFT\_STANDARD\_LIBRARIES” is part of essential settings. So maybe solution should be just move it to recommended.

---

<div class="post-metadata">

**Author:** ![rowwingman](https://community.tuist.dev/user_avatar/community.tuist.dev/rowwingman/32/150_2.png) [@rowwingman](https://community.tuist.dev/u/rowwingman)\
**Post date:** [November 18, 2024, 12:00am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/10 "2024-11-18T00:00:39Z")

</div>

I think support multi Xcode versions recommended settings is a good idea. We can provide some variables with recommended settings. for example .recmmended(version: .16). We can provide some concatenation. for example `.essential + .recommended(version: .16)`. What do you think? But this means that `.essential` are not part of the recommended.

---

<div class="post-metadata">

**Author:** ![marekfort](https://community.tuist.dev/user_avatar/community.tuist.dev/marekfort/32/8_2.png) [@marekfort](https://community.tuist.dev/u/marekfort)\
**Post date:** [November 18, 2024, 8:55am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/11 "2024-11-18T08:55:35Z")

</div>

> So maybe solution should be just move it to recommended.

We will no longer set the value of this setting at all. WIP PR is [here](https://github.com/tuist/tuist/pull/7038).

To ignore the Xcode’s check on each generate, you can set the [lastXcodeUpgradeCheck](https://docs.tuist.dev/en/references/project-description/structs/workspace.generationoptions#lastxcodeupgradecheck) variable to the latest Xcode. That will ensure that warning will go away until the next Xcode version.

> for example `.essential + .recommended(version: .16)`. What do you think? But this means that `.essential` are not part of the recommended.

I’d be against concatenating settings as it increases the overhead of learning these properties. `.recommended(version: .16)` should include all `.essential` settings as well.

---

<div class="post-metadata">

**Author:** ![rowwingman](https://community.tuist.dev/user_avatar/community.tuist.dev/rowwingman/32/150_2.png) [@rowwingman](https://community.tuist.dev/u/rowwingman)\
**Post date:** [November 19, 2024, 1:53am UTC](https://community.tuist.dev/t/alignment-of-recommended-settings-with-new-xcode-projects/174/12 "2024-11-19T01:53:20Z")

</div>

ok, remove it all is much simpler, agree.
