Ionic在Mac OS Yosemite上模拟ios失败.他们有一些情况是ios设备模拟,但在终端控制台拍摄下面的错误消息后不久.
** BUILD SUCCEEDED **
No target specified for emulator. Deploying to iPhone-6 simulator
An error was encountered processing the command (code=146):
Invalid device state
An error was encountered processing the command (code=146):
Exception encountered connecting to CoreSimulatorBridge: Unable to connect to CoreSimulatorBridge
ENOENT, no such file or directory '/Users/yay/Library/Logs/CoreSimulator/2CAA2C39-7F22-4AF2-BBDE-86609188F37C/system.log'
Error code 1 for command: ios-sim with args: launch,/Users/yay/code/myApp/platforms/ios/build/emulator/myApp.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/yay/code/myApp/platforms/ios/cordova/console.log,--stdout,/Users/yay/code/myApp/platforms/ios/cordova/console.log,--exit
Error: /Users/yay/code/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:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit …Run Code Online (Sandbox Code Playgroud) 如何使用鱼壳正确设置宝石的路径?
sanoy@nice-system ~/D/c/h/bellevue> gem 安装包
警告:您的 PATH 中没有 /home/sanoy/.gem/ruby/2.2.0/bin,gem 可执行文件将不会运行。成功安装 bundle-0.0.1 解析 bundle-0.0.1 的文档完成安装
0 秒后 bundle 的文档安装了 1 个 gem
sanoy@nice-system ~/D/c/h/bellevue> 捆绑安装鱼:未知命令“捆绑”
config.fish 文件
set PATH </home/sanoy/.gem/ruby/2.2.0/bin> $PATH
set -gx PATH $PATH </home/sanoy/.gem/ruby/2.2.0/bin>
Run Code Online (Sandbox Code Playgroud)