Wednesday, December 09, 2020

How do I create a release build in Xcode?

How do I create a release build in Xcode?

🔥 Save unlimited web pages along with a full PDF snapshot of each page.
Unlock Premium →

10

This answer is not useful

Show activity on this post.

It is done over building an Archive version.

First connect a iOS device to your Mac. Then select that device as target in Xcode.

Now click on the tab "Product" and click on "Archive"

  • This works, care to explain the downvote? When you Archive, you get the binary in built in the release mode the archive. This might not be the most practical way of getting the build, but that depends on blackguardian's use case. – zoul Apr 18 '11 at 18:17

  • The questions isn't "How to I create a distribution in Xcode?" Creating 'release build' is a normal activity (and to debug them) when the compiler optimizes code incorrectly or verifying debug release only options are disabled. The answer is below, but in short press SHIFT+COMMAND+, and edit the scheme to run release. – maninvan Oct 4 '15 at 2:45

105

This answer is not useful

Show activity on this post.

Product / Scheme / Edit Scheme..

enter image description here

And from the menu that comes up, select Release under "Build Configuration".

enter image description here

43

This answer is not useful

Show activity on this post.

Xcode 11

I found this question because I had already finished debugging my app and I wanted to make a release build for the app store. I always forget which menu item to use, though. This answer is a reminder to me and others next time.

Choose the Generic iOS Device from the active scheme menu.

enter image description here

Then go to Product > Archive.

enter image description here

You may have to wait a little while for Xcode to finish archiving your project. After that you will be shown a dialog with your archived project. You can select Distribute app... and follow the prompts.

More Help

This answer is for those who are already all signed up with a developer account and just need to get the archive from Xcode to iTunes Connect. If you need more help signing up for a developer account and getting an app to the app store, read the following links.

23

This answer is not useful

Show activity on this post.

To create a release build, you have to edit your current scheme (⌘<) and highlight "Run [name of application]. On the right, select "Build Configuration" and choose "Release". Build as usual.

  • Do you know if there's a way to build in the release mode just once, without editing the scheme? (Something like the toggle that used to be in older Xcode versions.) "Build for archiving" does not seem to work for me. – zoul Apr 18 '11 at 18:19

8

This answer is not useful

Show activity on this post.

If any one needs to go through how to make Adhoc build, here are quick steps

Product > Archive

then

Export > Save for Ad Hoc Deployment ....

See quick video http://jmp.sh/MQq2yjK

Not the answer you're looking for? Browse other questions tagged or ask your own question.

Source: https://stackoverflow.com/questions/5706548/how-do-i-create-a-release-build-in-xcode
This web page was saved on Tuesday, Dec 08 2020.

Upgrade to Premium Plan

✔ Save unlimited bookmarks.

✔ Get a complete PDF copy of each web page

✔ Save PDFs, DOCX files, images and Excel sheets as email attachments.

✔ Get priority support and access to latest features.

Upgrade now →

No comments: