【发布时间】:2017-10-09 21:33:34
【问题描述】:
我想为我的 ionic 应用程序构建一个 ios(框架的 v1 用于)。查看文档,似乎我必须运行以下命令-
ionic platform add ios
ionic platform build ios
但是,运行此命令会给我一条消息-
The platform command has been renamed. To find out more, run:
ionic cordova platform --help
想也许有一个新的更新重命名了命令,我跑了ionic cordova platform --help,只得到
[ERROR] Unable to find command: cordova platform
_ _
(_) (_)
_ ___ _ __ _ ___
| |/ _ \| '_ \| |/ __|
| | (_) | | | | | (__
|_|\___/|_| |_|_|\___| CLI 3.0.0
Usage:
$ ionic <command> [arguments] [options]
$ ionic <command> --help (for command details)
Global Commands:
docs ................ Open the Ionic documentation website
info ................ Print system/environment info
login ............... Login with your Ionic ID
signup .............. Create an Ionic account
start ............... Create a new project
telemetry ........... Opt in and out of telemetry
Project Commands:
generate ............ Generate pipes, components, pages, directives, providers, and tabs (ionic-angular >= 3.0.0) (alias: g)
link ................ Connect your local app to Ionic
serve ............... Start a local development server for app dev/testing
upload .............. Upload a new snapshot of your app
package build ....... Start a package build
package download .... Download your packaged app
package info ........ Get info about a build
package list ........ List your cloud builds
Options:
--verbose ........... Verbose output for debugging
--help .............. Show help for provided command
我开始认为这只是我的机器出现的一些奇怪的错误,因为到目前为止还没有人在网络上转发过。当我尝试运行 ionic build ios 和 ionic emulate ios 等其他 ios 命令时,我收到相同的消息
请告诉我如何生成构建,以便我可以在真实的 ios 设备上测试应用程序。
【问题讨论】:
标签: ios cordova ionic-framework