Build the app for release

Since we have already covered webpack bundling issues in the preceding chapter, we are now ready to build the final releasable bundle with the following command:

npm run build-ios-bundle -- --release --forDevice --teamId KXPB57C8BE

Note that the --teamId will be different for you. It is the prefix on the App ID provided in the preceding command.

After this command finishes, you'll have the .ipa file you'll need in your platforms/ios/build/device folder. Make a note of the location of that file, as you'll need it in the final step of this guide.

Phew! Hopefully, you've made it to this point in one piece. You're now ready for the final step, iTunes Connect.

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.