How to Create a Release Build in Xcode

How do I create a release build in Xcode?

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"

how to generate Release build for IOS..?

Please follow the below URL and let me know if any issue.

1) Create required IOS certificates from here:
https://apiko.com/blog/deploying-react-native-apps-to-app-store-and-play-market/

2) Create release build with following steps:

  1. Go to edit schema and change debug to release and uncheck all the checked for debug
  2. Clean the build folder.
  3. Run below command for create a bundle
    "

react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
"
  4. Go to xcode >> General please make sure you have selected same profile in signing(Release).
  5. Select "Generic IOS device" and from top header click on Product >> Archive.
  6. When you successfully build you need to next and on the next step you need to select your provisional profile and certificate.
  7. On the last step you will see an option to export the build please select "export" and save your build on the local machine.
  8. Now search for application loader from the mac and choose your release build once you complete all the steps.
  9. Check at 
below app store URL
    https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app

After 5-15 min you'll have an option on app store Build section with the plus(+) icon. Click on it and select your build, complete the form and submit your app.

How do I toggle between Debug and Release builds in Xcode 6 / 7 / 8?

In Xcode 6 - 10:

Choose Product -> Scheme -> Edit Scheme. Change the Build Configuration under the Info tab.

Shortcut: hold Alt and click the run button .


Sample Image

Sample Image

Xcode debug build vs release build

I have fixed the issue.

I found that by running expo publish in the terminal and then building with the release archive scheme in Xcode, it notices the changes.

Now why that is required (maybe it isn't), I am unsure of.

If anyone has an any additional insight, it would be greatly appreciated.

EDIT: So it looks like when I run expo publish it updates the app.bundle and app.manifest. This must be what the release scheme looks at when building.

How to build a release version of an iOS framework in Xcode?

To get a release build, you need to change your scheme settings:

Sample Image
Alternatively, create a new scheme for release builds.

Ensure you have a device selected. Not the simulator.

Sample Image

Build your project and you should see that it gets added to this location:
(Click the arrow to navigate there in finder)
Sample Image

And after drilling down, you should be able to find the release folder with your release framework inside.
Sample Image

Xcode 7 - how to build Release target?

By default Profile and Archive build Release, so you could do Build for->Profiling to get a Release build.

You can also modify things to build different configurations, or add your own. Choose Product->Scheme->Edit Scheme. Then to make Run use the Release configuration, select Run on the left side and choose Release for Build Configuration on the right.

How do I produce an iOS Release Build that my client can sign on their end?

Most of these answers seem complicated and out dated. I think the simple answer is to make an archive with a Developer profile.

This is a solution which I am currently investigating for my own purposes (not fully tested):

You just need developer access (not team agent) to their account and create a Development provisioning profile that authorizes you to build the specified App ID (you need to specify the App ID, because it gets compiled in). Then Archive the app with the Development profile, and share the archive with your client. They can then re-sign the archive with their own Distribution profile.

One complication is that when you build an archive with a developer profile, the entitlement attribute get-task-allow gets set to true, but needs to be set to false for distribution, so you have to work around that by setting it manually your Entitlements.plist - see my question here: Can I archive with a Developer certificate, then re-sign it during submission with a Distribution certificate?

Quickest way to install Release build on device?

You should be able to go in to your Edit Schemes preference pane. You can change your Build Configuration to Release there. I would suggest creating a duplicate scheme in which you can build Release builds.



Related Topics



Leave a reply



Submit