How do I create a release build in Xcode?

你说的曾经没有我的故事 提交于 2019-11-27 01:00:51

问题


Why is it that when I build an application, Xcode creates a debug build? I want to create a release build. How can I do this?


回答1:


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"




回答2:


Product / Scheme / Edit Scheme..

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




回答3:


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.

Then go to Product > Archive.

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.

  • How to Submit An App to Apple: From No Account to App Store – Part 1
  • How to Submit An App to Apple: From No Account to App Store – Part 2
  • App Distribution Guide (Apple Docs)
  • Submitting Your App to the Store (Apple Docs)



回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/5706548/how-do-i-create-a-release-build-in-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!