From 7cd769a23fe722ef7948e820c4b9ada1027a346f Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Fri, 18 May 2012 14:51:01 +0200 Subject: [PATCH] fix momc line by using absolute paths --- lib/motion/project/builder.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index 2b52c633..ed0667f0 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -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