Does the Xcode `Archive` function automatically use the `Release` build configuration?
Solution 1
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
Scheme, Action, Build configuration
Target -> Schema -> Action -> Build configuration
actions: run, test, profile, analyze, archive
Build Configuration
[About]: Debug, Release,
To check/change Build Configuration
you should edit/manage schema
ck_
Updated on July 08, 2022Comments
-
ck_ almost 2 years
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 toDebug
during development, but want the version on the App Store to beRelease
.I am hoping and assuming that
Product > Archive
automatically uses aRelease
build configuration. Can anyone confirm? -
ck_ about 11 yearsAh, perfect. Did not see that Archive was listed in
Edit Scheme...
you are able to switch it to Debug, even, but Release is the default. -
realtebo about 6 yearscksubs, thanks for your comment. It was what I was looking for
-
Yash Kalwani over 5 yearsBut i am still confused. What if i manually choose the debug version(for debuggind and don't remember to change it back to release) and archive it and put it on test flight. Would it still upload the debug version or will it automatically switch to release build?
-
David B. over 5 yearsIt will still upload the debug version unfortunately. I am going through this currently and I just got off the phone with Apple dev support to have my build switched to a different release build before the debug build goes out.