66

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?

ck_
  • 3,719
  • 10
  • 49
  • 76

2 Answers2

110

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...

Ben M
  • 2,405
  • 1
  • 20
  • 19
  • 16
    Ah, 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. – ck_ Apr 03 '13 at 16:05
  • cksubs, thanks for your comment. It was what I was looking for – realtebo Apr 10 '18 at 13:45
  • 2
    But 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? – Yash Kalwani Nov 29 '18 at 08:58
  • 1
    It 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. – David B. Jan 04 '19 at 01:29
6

Xcode 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

To find Archive action:

<target_name> -> Edit Scheme... -> Archive
//or
<target_name> -> Manage Schemes... -> <target_name> -> Archive
yoAlex5
  • 29,217
  • 8
  • 193
  • 205
  • Downvoted because this doesn't actually describe how to get to the screenshotted window, unlike Ben M's answer, which is shorter and leads directly to it. – Tyler Forsythe Aug 01 '22 at 21:39
  • @TylerForsythe, the question was `I am hoping and assuming that Product > Archive automatically uses a Release build configuration. Can anyone confirm?` And my answer contains a screenshot which proves there. – yoAlex5 Aug 02 '22 at 08:36