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
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
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).