离子模拟ios不工作

时间:2016-11-12 03:01:11

标签: ios xcode cordova ionic-framework

嘿大家进入离子框架,我试图通过iPhone模拟我的应用程序 从终端运行以下命令 ionic emulate ios 并得到以下错误

• You're trying to build for ios but don't have the platform installed yet.
∆ Installing ios for you.

 Error: Command failed: cordova platform add ios
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)`

一直环顾四周,并没有找到任何可靠解决问题的方法,寻找任何可能的帮助

1 个答案:

答案 0 :(得分:0)

您必须尝试删除ios平台,然后重新添加:

ionic platform rm ios

ionic platform add ios