【问题标题】:"ionic cordova run ios" don't work“离子科尔多瓦运行 ios”不起作用
【发布时间】:2018-07-28 10:28:54
【问题描述】:

我从来没有看到运行该命令后会发生什么,但可能应该在我的 Iphone 中添加应用程序。在“ionic cordova run ios”行之后没有任何反应,所有日志:

cordova run ios
Running app-scripts build: --platform ios --target c
ordova
[21:10:23]  build dev started ...
[21:10:23]  clean started ...
[21:10:23]  clean finished in 20 ms
[21:10:23]  copy started ...
[21:10:23]  deeplinks started ...
[21:10:23]  deeplinks finished in 68 ms
[21:10:23]  transpile started ...
[21:10:29]  transpile finished in 5.71 s
[21:10:29]  preprocess started ...
[21:10:29]  preprocess finished in 2 ms
[21:10:29]  webpack started ...
[21:10:29]  copy finished in 6.05 s
[21:10:39]  webpack finished in 10.18 s
[21:10:39]  sass started ...
Without `from` option PostCSS could generate wrong s
ource map and will not find Browserslist config. Set
 it to CSS file path or to `undefined` to prevent th
is warning.
[21:10:41]  sass finished in 1.51 s
[21:10:41]  postprocess started ...
[21:10:41]  postprocess finished in 21 ms
[21:10:41]  lint started ...
[21:10:41]  build dev finished in 17.66 s
> cordova run ios
(node:3192) UnhandledPromiseRejectionWarning: Unhand
led promise rejection (rejection id: 1): xcodebuild
was not found. Please install version 7.0.0 or great
er from App Store
(node:3192) [DEP0018] DeprecationWarning: Unhandled
promise rejections are deprecated. In the future, pr
omise rejections that are not handled will terminate
 the Node.js process with a non-zero exit code.

[OK] Your app has been deployed.
     Did you know you can live-reload changes from y
our app with --livereload?

[21:10:46]  lint finished in 5.38 s

我能做什么?

【问题讨论】:

    标签: angular cordova ionic-framework


    【解决方案1】:

    您必须安装 XCode 才能为 iOS 构建 Ionic 应用程序。
    请参阅cordova documentation 了解更多信息。

    【讨论】:

    • 所以我需要从我的 Iphone 上的 appstore 下载 Xcode,对其进行配置,然后该命令将在我的 Windows 操作系统、Webstorm 终端上运行?
    • 正如我在许多 stackoverflow 答案中看到的那样,无法通过 windows 上的 cordova ios 免费进行模拟。对吗?
    • 不,这不能解决您的问题。您不能在 Windows 机器上构建 iOS 应用程序。据我所知,唯一的可能性是通过云构建它。看看 Josh Morony 的这篇文章:joshmorony.com/…
    猜你喜欢
    • 2019-06-03
    • 1970-01-01
    • 2018-01-16
    • 1970-01-01
    • 1970-01-01
    • 2019-02-04
    • 2020-09-10
    • 2020-03-08
    • 1970-01-01
    相关资源
    最近更新 更多