ionic emulate ios 运行失败问题

ionic emulate ios 运行失败问题

ios-sim was not found. Please download, build and install version 3.0.0 or greater from https://github.com/phonegap/ios-sim into your path. Or 'npm install -g ios-sim' using node.js: http://nodejs.org

Error: /Users/iosdev2/desktop/myApp/platforms/ios/cordova/run: Command failed with exit code 2

at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)

at ChildProcess.emit (events.js:110:17)

at maybeClose (child_process.js:1008:16)

at Process.ChildProcess._handle.onexit (child_process.js:1080:5)

解决:

在终端输入:

npm install -g ios-sim

运行完成后,再次输入

ionic emulate ios 来运行工程


长按图片识别图中二维码(或搜索微信公众号FrontEndStory)关注“前端那些事儿”,带你探索前端的奥秘。

ionic emulate ios 运行失败问题_第1张图片


你可能感兴趣的:(ionic emulate ios 运行失败问题)