How can I build for release/distribution on the Xcode 4?

后端 未结 9 1476
鱼传尺愫
鱼传尺愫 2020-12-07 13:53

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

相关标签:
9条回答
  • 2020-12-07 14:33

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

    0 讨论(0)
  • 2020-12-07 14:40

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

    0 讨论(0)
  • 2020-12-07 14:41

    The "play" button is specifically for build and run (or test or profile, etc). The Archive action is intended to build for release and to generate an archive that is suitable for submission to the app store. If you want to skip that, you can choose Product > Build For > Archive to force the release build without actually archiving. To find the built product, expand the Products group in the Project navigator, right-click the product and choose to show in Finder.

    That said, you can click and hold the play button for a menu of other build actions (including Build and Archive).

    0 讨论(0)
  • 2020-12-07 14:42

    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
    
    0 讨论(0)
  • 2020-12-07 14:46

    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.

    0 讨论(0)
  • 2020-12-07 14:48

    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.

    0 讨论(0)
提交回复
热议问题