mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-16 21:21:56 +08:00
fix momc line by using absolute paths
This commit is contained in:
@@ -303,6 +303,8 @@ EOS
|
||||
momd = model.sub(/\.xcdatamodeld$/, '.momd')
|
||||
if !File.exist?(momd) or File.mtime(model) > File.mtime(momd)
|
||||
App.info 'Compile', model
|
||||
model = File.expand_path(model) # momc wants absolute paths.
|
||||
momd = File.expand_path(momd)
|
||||
sh "\"#{App.config.xcode_dir}/usr/bin/momc\" \"#{model}\" \"#{momd}\""
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user