尝试使用meteor run ios运行iOS模拟器时没有此类文件/目录消息

时间:2016-01-13 17:39:26

标签: ios cordova meteor

我尝试运行iOS模拟器时出现此错误

=> Started proxy.                             
=> Started MongoDB.                           
=> Started your app.                          

=> App running at: http://localhost:3000/     
=> Errors executing Cordova commands:  



   While running Cordova app for platform iOS with options --emulator:
   Error: Command failed: /Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/cordova/run --emulator
   ENOENT, no such file or directory '/Users/paulhayes/Library/Logs/CoreSimulator/E99C26C3-5BDD-4BBE-A63E-6510238BCC45/system.log'
   Error code 1 for command: ios-sim with args:
   launch,/Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/build/emulator/microscope.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/cordova/console.log,--stdout,/Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/cordova/console.log,--exit
   at ChildProcess.exitCallback (/tools/utils/processes.js:137:23)
   at ChildProcess.emit (events.js:98:17)
   at Process.ChildProcess._handle.onexit (child_process.js:820:12)

ExitWithCode:1

我已经完成了https://www.meteor.com/tutorials/blaze/running-on-mobile中概述的步骤,并通过从xcode运行HelloWorld Swift应用程序检查了我的Xcode安装 - 它工作正常。

非常感谢任何帮助

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我花了一天的时间才找到解决方案。短篇小说 -

  1. 确保您的系统中某处没有Xcode的旧版本,尤其是检查/Recovered\ Items/Applications/目录。
  2. 检查您是否在Xcode中定义了模拟器>窗口>设备具有与您获得的错误相同的标识符,例如E99C26C3-5BDD-4BBE-A63E-6510238BCC45,如果你不需要在列表中添加匹配的模拟器,午餐就可以创建目录和system.log文件。