当我试图运行这个应用程序时,我一直试图跟踪这个CDQ教程,并遇到了一个权限错误。
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)我在第一和第二问题上都添加了关于CDQ github页面错误的内容,但是还没有得到任何响应。
发布于 2014-08-25 05:14:33
看起来这个问题可能已经在RubyMotion:http://hipbyte.myjetbrains.com/youtrack/issue/RM-553的下一个版本(尚未发布)中得到修正(如沃森所报告)。
这个问题似乎在RM2.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 cdq或bundle install。
发布于 2014-08-11 18:51:54
也许,您需要使用由rbenv或RVM安装的Ruby,而不是系统绑定。
https://stackoverflow.com/questions/25247939
复制相似问题