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 来运行工程

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