use*_*513 1 ios cordova ionic-framework cordova-plugins ionic
MacBook-Pro:myApps naveenkumar$ ionic run ios
Adding in default Ionic hooks
Running command: /Users/naveenkumar/Documents/ionic_work/myApps/hooks/after_prepare/010_add_platform_class.js /Users/naveenkumar/Documents/ionic_work/myApps
add to body class: platform-ios
Running command: /Users/naveenkumar/Documents/ionic_work/myApps/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/naveenkumar/Documents/ionic_work/myApps
Running command: /Users/naveenkumar/Documents/ionic_work/myApps/platforms/ios/cordova/run
Cordova needs ios-sim version 3.0.0 or greater, you have version 1.9.0
.
ERROR running one or more of the platforms: Error: /Users/naveenkumar/Documents/ionic_work/myApps/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
MacBook-Pro:myApps naveenkumar$
Run Code Online (Sandbox Code Playgroud)
您好,我正在尝试从终端运行我的项目.我收到了上述错误.但是,当我去给定的iOS目录从Xcode运行我的项目时它工作正常.这意味着,当我从Xcode运行时,我能够运行模拟器/模拟器并检查我的输出.但是当我从终端运行时,我无法运行我的应用程序.你能告诉我如何从终端运行我的应用程序吗?
谢谢
这是问题所在:
Cordova needs ios-sim version 3.0.0 or greater, you have version 1.9.0
这是解决方案:
npm update -g ios-sim
| 归档时间: |
|
| 查看次数: |
1465 次 |
| 最近记录: |