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

NativeScript Core

tns prepare

Description

Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory. This lets you build the project with the SDK for the selected platform. You must specify the target platform for which you want to prepare your project.

Commands

Usage Synopsis
General $ tns prepare <Platform>General

Arguments

<Platform> is the target mobile platform for which you want to prepare your project. You can set the following target platforms.

  • android - Prepares your project for an Android build.
  • ios - Prepares your project for an iOS build.

Command Limitations

  • You can run $ tns prepare ios only on macOS systems.
Command Description
install Installs all platforms and dependencies described in the package.json file in the current directory.
platform add Configures the current project to target the selected platform.
platform remove Removes the selected platform from the platforms that the project currently targets.
platform update Updates the NativeScript runtime for the specified platform.
platform Lists all platforms that the project currently targets.