现在,在设置detect_dependences=false后,从RubyMotion获取未初始化的常量MotionMo



我一直在添加sqlite3作为持久存储,它似乎不起作用,但我得到:警告:自动相关性检测不适用于运动支持。在你的Rakefile:中关闭它

app.detect_dependencies=错误

我这样做后,应用程序不再编译,它会出现"未初始化的常量MotionModel::SQLite3Adapter"错误。注释掉这一行,它就可以处理消息了。

我的rake文件是:

$:.unshift("/Library/RubyMotion/lib"
require 'motion/project/template/ios'
require 'rubygems'
#require 'motion/project'
require 'bundler'
Bundler.require
$: << File.expand_path('../../lib', __FILE__)
require 'motion_model'
require 'motion_model/sql'
require 'motion_model/fmdb'

Motion::Project::App.setup do |app|
  app.name = 'VrWizard'
  app.frameworks += [ "CoreText"]
  app.detect_dependencies = false
  app.vendor_project('vendor/MYCalendar', :static)
  app.pods do
    pod 'NanoStore', '~> 2.6.4'
  end
end

我的宝石文件包含:

gem 'motion_model',  :git => 'https://github.com/sxross/MotionModel.git', :branch => 'sql'

我尝试使用主MotionModel,但其中没有sql。

我只是不想以后有什么东西上来咬我。根据我所读到的内容,在1.26中添加了标志,而自动依赖是实验性的。这是应该消除的残余变暖吗?如果我需要它,我该如何解决新的错误?

Don French

我是MotionModel的SQL适配器的作者。可以安全地忽略有关MotionModel的警告。MotionModel需要依赖检测,但运动支持的作者认为他的宝石不是。

我强烈建议禁用detect_dependences功能。几乎所有的RubyMotion宝石都是为了利用它而编写的。忽略警告可能是安全的。

最新更新