UNPKG

nativescript

Version:

Command-line interface for building NativeScript projects

41 lines (30 loc) 2.01 kB
<% if (isJekyll) { %>--- title: ns platform clean position: 3 ---<% } %> # ns platform clean ### Description Removes and adds the selected platform to the project currently targets. <% if(isMacOS) { %>You must specify the target platform that you want to remove.<% } %> ### Commands Usage | Synopsis ------|------- <% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns platform clean <Platform>`<% } %> <% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns platform clean android`<% } %> <% if(isMacOS) { %>### 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.<% } %> <% if(isHtml) { %> ### Command Limitations * You can run `$ ns 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 `ns clean ios@2.1.0` or `ns clean ios --frameworkPath <path-to-tgz>`. ### Related Commands Command | Description ----------|---------- [install](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory. [platform remove](platform-remove.html) | Removes the selected platform from the platforms that the project currently targets. [platform add](platform-add.html) | Configures the current project to target the selected platform. [platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform. [platform](platform.html) | Lists all platforms that the project currently targets. [prepare](prepare.html) | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory. <% } %>