📺 "One project. One language. Three apps." Learn more in our upcoming code sharing webinar!

NativeScript Sidekick

Cloud Builds

With NativeScript Sidekick, you can build your apps in the cloud and utilize its power and flexibility to achieve a truly cross-platform mobile development on all major desktop operating systems. This includes iOS development on operating systems other than macOS. You do not require any preliminary setup to build your mobile apps in the cloud.

The cloud builds are incremental, which ensures that every build after the first one will take significantly less time to complete. This is possible because some of the app data is cached during the first build and then reused in later builds.

Prerequisites

  • To build for iOS, you need a valid certificate and mobile provision. If you have a Free Apple Developer account, you can use the Code Signing Assistance to automatically generate temporary certificate and mobile provision. For more information about iOS code signing, see the iOS Developer Program article.
  • To build for Android in Release configuration, you need a valid Google Play self-signed code signing identity. For more information on how to generate a release certificate for Android, see the following article.

Procedure for Android

  1. Launch NativeScript Sidekick and open your app.
  2. From the top toolbar, select Build.
  3. Select Android.
  4. Hover on the Android box and click on the cogwheel icon to open the Manage Android Certificates dialog.
  5. Next to Certificate, click Browse to choose a certificate stored on the file system or expand the drop-down to select a certificate stored in the Certificate Manager (Windows) or the Keychain (macOS).
  6. Close the Manage Android Certificates dialog.
  7. Under Build Type, select Cloud Build.
  8. Select a Configuration.
  9. (Optional) Enable Clean Build. When you enable this option, any previously cached data will be ignored and your app will undergo a complete rebuild. Initiating a clean build may help you to resolve sporadic build failures.
  10. (Optional) Enable Webpack. For more information, see Bundle Your Code with Webpack.
  11. (Optional) If any issues are present, resolve them before you continue.
  12. Click on Build.
  13. If you have provided a certificate stored on the file system (step 5), you will be prompted to enter its password on every build. Certificates stored in the Certificate Manager or Keychain do not require password validation.
  14. When the build process is complete, you will be presented with a path to the produced APK file and a QR code. You can use a barcode scanner app to scan the QR code and install the application directly on a device.

Procedure for iOS

  1. Launch NativeScript Sidekick and open your app.
  2. From the top toolbar, select Build.
  3. Select iOS.
  4. Hover on the iOS box and click on the cogwheel icon to open the Manage iOS Provisions and Certificates dialog.
  5. Next to Certificate, click Browse to choose a certificate stored on the file system or expand the drop-down to select a certificate stored in the Certificate Manager (Windows) or the Keychain (macOS).
  6. Next to Provision, click Browse to choose a mobile provision stored on the file system.
  7. Close the Manage iOS Provisions and Certificates dialog.
  8. Under Build Type, select Cloud Build.
  9. Select a Configuration.
  10. (Optional) Enable Clean Build. When you enable this option, any previously cached data will be ignored and your app will undergo a complete rebuild. Initiating a clean build may help you to resolve sporadic build failures.
  11. (Optional) Enable Webpack. For more information, see Bundle Your Code with Webpack.
  12. (Optional) If any issues are present, resolve them before you continue.
  13. Click on Build.
  14. If you have provided a certificate stored on the file system (step 5), you will be prompted to enter its password on every build. Certificates stored in the Certificate Manager or Keychain do not require password validation.
  15. When the build process is complete, you will be presented with a path to the produced IPA file.

Next Steps

Deploy your app on a connected device.

See Also