错误构建平台之一:IOS



关于建立和运行移动混合应用程序的ionic课程,我被绊倒在步骤:

$ ionic build ios

以下错误是:

$ ionic build ios
Running command: "c:Program Files (x86)nodejsnode.exe##c:wampwwwweatherhooksafter_prepare10_add_platform_    class.js c:/wamp/www/weather
add to body class: platform-ios
Running command: cmd "/s/c"c:wampwwwweatherplatformsioscordovabuild""
'c:wampwwwweatherplatformsioscordovabuild' is not recognized as an internal or external command,
operable program or batch file.
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone        (c:UsersAcerAppDataRoamingnpmnode_modulescordovanode_modulescordova-libsrccordovasuperspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

我对ionic build android没有问题。你能帮我建议一下问题是怎么来的吗?提前谢谢!

我看到你在用Windows。

注意:iOS开发需要Mac OS x。

来源:http://ionicframework.com/getting-started/

如果你真的需要为iOS构建,你将需要购买Mac(是的,这真的很可悲)或使用处理这种情况的解决方案,如Phonegap。如果我没记错的话,Ionic团队正在研究解决这个问题的方案,但还没有准备好。

相关内容

最新更新