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)`
一直环顾四周,并没有找到任何可靠解决问题的方法,寻找任何可能的帮助
答案 0 :(得分:0)
您必须尝试删除ios平台,然后重新添加:
ionic platform rm ios
ionic platform add ios