From 7cb8d4a3b3a01fdc118041a9903fc96d44ae7fff Mon Sep 17 00:00:00 2001 From: Scott Pierce Date: Tue, 17 Sep 2013 10:24:50 -0500 Subject: [PATCH] clean common_build_dir with everything else. Fixes issues when gem depends on a CocoaPod. Specifically iCarousel and Geomotion. If there is a better way to clean the common_build_dir I'm open to it. --- lib/motion/project.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/motion/project.rb b/lib/motion/project.rb index dac9f447..009105b2 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -42,6 +42,10 @@ task :clean do App.info 'Delete', App.config.build_dir rm_rf(App.config.build_dir) + + App.info 'Delete', Motion::Project::Builder.common_build_dir + rm_rf Motion::Project::Builder.common_build_dir + App.config.vendor_projects.each { |vendor| vendor.clean } Dir.glob(App.config.resources_dirs.flatten.map{ |x| x + '/**/*.{nib,storyboardc,momd}' }).each do |p| next if File.extname(p) == ".nib" && !File.exist?(p.sub(/\.nib$/, ".xib"))