nativescript
Version:
Command-line interface for building NativeScript projects
41 lines (29 loc) • 1.85 kB
Markdown
<% if (isJekyll) { %>---
title: ns platform remove
position: 4
---<% } %>
Removes the selected platform from the platforms that the project currently targets. After removing the target platform, you can no longer build and deploy your app on devices which run on the platform. <% if(isMacOS) { %>You must specify the target platform that you want to remove.<% } %>
<% if(isHtml) { %>This operation deletes the subdirectory for the selected platform from the platforms directory. <% } %>
Usage | Synopsis
------|-------
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns platform remove <Platform>`<% } %>
<% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns platform remove android`<% } %>
<% if(isMacOS) { %>
`<Platform>` is the target mobile platform that you want to remove from 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) { %>
* You can run `$ ns platform remove ios` only on macOS systems.
Command | Description
----------|----------
[](install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
[](platform-add.html) | Configures the current project to target the selected platform.
[](platform-update.html) | Updates the NativeScript runtime for the specified platform.
[](platform.html) | Lists all platforms that the project currently targets.
[](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.
<% } %>