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

NativeScript Core

tns platform clean

Description

Removes and adds the selected platform to the project currently targets. You must specify the target platform that you want to remove.

Commands

Usage Synopsis
General $ tns platform clean <Platform>
General $ tns platform clean android

Arguments

<Platform> is the target mobile platform that you want to clean in your project. You can set the following target platforms.

  • android - Removes configuration changes for Android development.
  • ios - Removes configuration changes for iOS development.

Command Limitations

  • You can run $ tns platform clean ios only on macOS systems.
  • Clean command will not preserve your current installed platform version but will download and install latest platform version. If you are using clean with custom version of the runtime, specify the version in the command tns clean ios@2.1.0 or tns clean ios --frameworkPath
Command Description
install Installs all platforms and dependencies described in the package.json file in the current directory.
platform remove Removes the selected platform from the platforms that the project currently targets.
platform add Configures the current project to target the selected platform.
platform update Updates the NativeScript runtime for the specified platform.
platform Lists all platforms that the project currently targets.
prepare Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.