How can I build for release/distribution on the Xc

2019-01-16 05:58发布

Build for debug is just press on the PLAY symbol, but I don't know how to Build for distribution/release?

标签: xcode4
9条回答
看我几分像从前
2楼-- · 2019-01-16 06:07

XCode>Product>Schemes>Edit Schemes>Run>Build Configuration

查看更多
贪生不怕死
3楼-- · 2019-01-16 06:09

You can use command line tool to build the release version. Next to your project folder, i.e.

$ ls
...
Foo.xcodeproj
...

Type the following build command:

$ xcodebuild -configuration Release
查看更多
我只想做你的唯一
4楼-- · 2019-01-16 06:11

The short answer is:

  1. choose the iOS scheme from the drop-down near the run button from the menu bar
  2. choose product > archive in the window that pops-up
  3. click 'validate'
  4. upon successful validation, click 'submit'
查看更多
兄弟一词,经得起流年.
5楼-- · 2019-01-16 06:18

Product -> Archive, later, press the distribute button and check the option Export as Application or what you want

查看更多
可以哭但决不认输i
6楼-- · 2019-01-16 06:20

That part is now located under Schemes. If you edit your schemes you will see that you can set the debug/release/adhoc/distribution build config for each scheme.

查看更多
祖国的老花朵
7楼-- · 2019-01-16 06:25

To set the build configuration to Debug or Release, choose 'Edit Scheme' from the 'Product' menu.

Then you see a clear choice.

The Apple Transition Guide mentions a button at the top left of the Xcode screen, but I cannot see it in Xcode 4.3.

查看更多
登录 后发表回答