Set NSZombieEnabled=YES when running the simulator if zombie=1 is set.

This commit is contained in:
Daniel Dickison
2013-05-15 02:58:25 -04:00
parent 2e1855c04d
commit cc9a9e241e

View File

@@ -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