Skip to content

Instantly share code, notes, and snippets.

@rigor789
Created August 31, 2018 19:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rigor789/1a75f7f82a3d4c00196821db8e38804f to your computer and use it in GitHub Desktop.
Save rigor789/1a75f7f82a3d4c00196821db8e38804f to your computer and use it in GitHub Desktop.
Creating a release build with NativeScript-Vue vue-cli-template (old)

Creating a release build in vue-cli-template (old)

First clean the dist folder before building either an android or ios build:

npm run clean

Android Build

npm run build:android
cd dist
tns build android --release --key-store-path <path-to-your-keystore> --key-store-password <your-key-store-password> --key-store-alias <your-alias-name> --key-store-alias-password <your-alias-password>

The above should produce a release apk in dist/platforms/android/app/build/outputs/apk/release

iOS Build

npm run build:ios
cd dist
tns prepare ios --release

open the dist/platforms/ios/dist.xcworkspace

IMPORTANT: Make sure you open the workspace file and not the xcodeproj file because otherwise you won't get cocoapods installed and the build will fail.

Tweak the application name, bundle id (if needs changing), version and build numbers. Select Team and a signing certificate.

In the top there is a select box for selecting a device, choose Generic iOS Device and then hit Product/Archive (in the top menu). Go through the wizard, making sure you selected the correct certs and teams, and the rest can be left as default.

This should build the app and open an archive list with the most recent build in the list. Select it and upload to AppStore (this will go to TestFlight).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment