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)
任何人都知道這裏的問題是什麼?