【问题标题】:CDQ permission error in RubyMotionRubyMotion 中的 CDQ 权限错误
【发布时间】:2014-08-11 16:24:30
【问题描述】:

我一直在尝试关注此CDQ tutorial,但在尝试运行该应用程序时遇到了权限错误

learn-cdq btuman$ rake
Build ./build/iPhoneSimulator-7.1-Development
Build /Library/Ruby/Gems/2.0.0/gems/motion-yaml-1.2.1/lib/YAMLKit
rake aborted!
Errno::EACCES: Permission denied - build-iPhoneSimulator
/Library/RubyMotion/lib/motion/project/vendor.rb:138:in `block in build_static'
/Library/RubyMotion/lib/motion/project/vendor.rb:67:in `chdir'
/Library/RubyMotion/lib/motion/project/vendor.rb:67:in `build_static'
/Library/RubyMotion/lib/motion/project/vendor.rb:44:in `build'
/Library/RubyMotion/lib/motion/project/builder.rb:67:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:66:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:66:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:78:in `build'
/Library/RubyMotion/lib/motion/project/template/ios.rb:68:in `block (2 levels) in <top (required)>'
/Library/RubyMotion/lib/motion/project/template/ios.rb:122:in `block in <top (required)>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)

我已在firstsecond 上添加了关于CDQ github page 上此错误的问题,但尚未收到任何回复。

【问题讨论】:

    标签: ios core-data rubymotion


    【解决方案1】:

    看起来这可能已在 RubyMotion 的下一个(尚未发布的)版本中得到修复:http://hipbyte.myjetbrains.com/youtrack/issue/RM-553(由 Watson 报告)

    该问题似乎在 RM 2.26 之后的某个时间点出现(这是我在撰写这篇文章时遇到的问题),并且看起来是 RM 的更高版本与 CDQ 中指定的旧版本之间的不兼容教程(0.1.5)。

    更新到最新版本的 CDQ(撰写本文时为 0.1.10)修复了该问题;不过,我不确定从现在到那时发生了什么变化。

    所以在你的Gemfile:

    gem 'cdq'
    # Or specify the latest version at time of writing
    # gem 'cdq', '0.1.10'
    

    如果这是您正在设置的新应用,请运行 bundle update cdqbundle install

    【讨论】:

      【解决方案2】:

      也许,您需要使用 rbenv 或 RVM 安装的 Ruby,而不是系统捆绑。

      【讨论】:

      • rbenv?出于好奇,是什么让您认为这是 ruby​​ 版本问题?
      • 也许,我猜这是 RubyMotion 的问题。您可以使用motion support 命令提交票证。
      • 也许,当您使用sudo gem install xxxx 安装motion-yaml 时,您会遇到这个问题。如果您通过 rbenv 或 RVM 使用 Ruby,则无需超级用户身份验证即可安装 gem。
      • 您可以在任何版本中使用 Ruby。我更喜欢最新的:)
      • 我目前使用的是最新的
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-08
      • 2012-05-23
      • 1970-01-01
      相关资源
      最近更新 更多