0
我跟着宝石的设定步骤,motion-layouts ...超级简单。但是,提供的路径不起作用...在控制台中引发错误。路径如下:设置运动的布局导致路径错误
app.files.unshift(Dir.glob(File.join(app.project_dir, 'vendor/motion-layouts/lib/**/*.rb')))
这些文件都在lib目录中,但它们没有被加载。当运行耙子这些是错误:
uninitialized constant Motion::Project (NameError)
/blah/blah/blah/vendor/motion-layouts/lib/motion-layouts.rb must be required within a RubyMotion project Rakefile. (RuntimeError)
2013-04-20 18:58:51.675 SuperCast[81864:c07] *** Terminating app due to uncaught exception 'RuntimeError', reason: '/blah/blah/blah/vendor/motion-layouts/lib/motion-layouts.rb must be required within a RubyMotion project Rakefile. (RuntimeError)
任何人都知道这里的问题是什么?