From cc9a9e241ea06ac3b91cf7c3983706c629d617ed Mon Sep 17 00:00:00 2001 From: Daniel Dickison Date: Wed, 15 May 2013 02:58:25 -0400 Subject: [PATCH] Set NSZombieEnabled=YES when running the simulator if zombie=1 is set. --- lib/motion/project/template/ios.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/motion/project/template/ios.rb b/lib/motion/project/template/ios.rb index a39a779a..c471a250 100644 --- a/lib/motion/project/template/ios.rb +++ b/lib/motion/project/template/ios.rb @@ -86,6 +86,7 @@ task :simulator => ['build:simulator'] do xcode = App.config.xcode_dir env = "DYLD_FRAMEWORK_PATH=\"#{xcode}/../Frameworks\":\"#{xcode}/../OtherFrameworks\"" env << ' SIM_SPEC_MODE=1' if App.config.spec_mode + env << ' NSZombieEnabled=YES' if ENV['zombie'] sim = File.join(App.config.bindir, 'ios/sim') debug = (ENV['debug'] ? 1 : (App.config.spec_mode ? '0' : '2')) App.info 'Simulate', app