【问题标题】:Meteor run ios --verbose流星运行 ios --verbose
【发布时间】:2014-12-10 12:17:59
【问题描述】:

当我尝试在 ios 中通过命令运行流星 todos 示例应用程序时

sudo meteor run ios --verbose

(我使用sudo的原因是因为没有sudo,它会显示eaccess错误,权限被拒绝错误)

然后在使用上述命令和 sudo 后,我得到以下错误:

** BUILD SUCCEEDED **
2014-12-10 17:55:17.475 ios-sim[4120:60148] stderrPath: /Users/black_monk/meteor_examples/todos/.meteor/local/cordova-build/platforms/ios/cordova/console.log
2014-12-10 17:55:17.476 ios-sim[4120:60148] stdoutPath: /Users/black_monk/meteor_examples/todos/.meteor/local/cordova-build/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x7ffcbb4103c0 {NSLocalizedDescription=Simulator session timed out.}
Command finished with error code 1: /Users/black_monk/meteor_examples/todos/.meteor/local/cordova-build/platforms/ios/cordova/run --emulator
Error: /Users/black_monk/meteor_examples/todos/.meteor/local/cordova-build/platforms/ios/cordova/run: Command failed with exit code 1
    at ChildProcess.whenDone (/Users/black_monk/.meteor/packages/meteor-tool/.1.0.36.690ab6++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)

Could not start the app in the iOS simulator.
Try running again with the --verbose option.

它只显示此消息我不确定是什么问题。我正在尝试让流星在移动设备上运行,但以一种或另一种方式它只会失败,我不知道为什么。我在 android 上尝试过相同的 EACCESS 错误。

所有 SDK 均已安装。没有任何指南可供学习。

请帮忙。

【问题讨论】:

    标签: javascript ios node.js meteor


    【解决方案1】:

    您不需要使用 sudo 在流星中运行任何东西。如果这样做,听起来您以sudo 的身份运行meteor install 命令?如果是这种情况,请尝试卸载流星并以普通用户身份重新安装。您似乎遇到了流星、cordova 和 IOS 模拟器之间的权限错误。

    【讨论】:

    • 也这样做了,有没有其他办法?
    【解决方案2】:

    做到了,

    将所有目录更改为权限 777

    sudo find /Users/black_monk/meteor_examples/todos/.meteor/local/ -type d -exec chmod 777 {} \;

    以及其中的所有文件到 777 以及

    sudo find /Users/black_monk/meteor_examples/todos/.meteor/local/ -type f -exec chmod 777 {} \;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-23
      • 2015-02-03
      • 1970-01-01
      • 1970-01-01
      • 2014-12-18
      • 2015-01-17
      • 2015-09-15
      相关资源
      最近更新 更多