我按照motion-layouts的宝石设置说明...超级简单。但是,提供的路径不起作用...在控制台中抛出错误。路径如下:
app.files.unshift(Dir.glob(File.join(app.project_dir, 'vendor/motion-layouts/lib/**/*.rb')))
这些文件都在lib目录中,但它们没有被加载。运行rake时出现以下错误:
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)
任何人都知道这里的问题是什么?