Does the Xcode `Archive` function automatically use the `Release` build configuration?

IosXcodeMacos

Ios Problem Overview


My standard workflow, when releasing an app to the App Store, is to press Product > Archive from Xcode's menubar.

I realize that I never change the Xcode Build Configuration in my build scheme. I have it set to Debug during development, but want the version on the App Store to be Release.

I am hoping and assuming that Product > Archive automatically uses a Release build configuration. Can anyone confirm?

Ios Solutions


Solution 1 - Ios

Yes. By default, the Debug configuration is used for running on the Simulator while the Release is for Archives. I recommend looking at your Schemes.

> Product -> Scheme -> Edit Scheme...

Solution 2 - Ios

Scheme, Action, Build configuration

Target -> Schema -> Action -> Build configuration

[Scheme]

actions: run, test, profile, analyze, archive

Build Configuration[About]: Debug, Release,

To check/change Build Configuration you should edit/manage schema

https://i.stack.imgur.com/TZZjn.png" height="150"/>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionck_View Question on Stackoverflow
Solution 1 - IosBen MView Answer on Stackoverflow
Solution 2 - IosyoAlex5View Answer on Stackoverflow