lib/xcake/project/sugar.rb in xcake-0.6.7 vs lib/xcake/project/sugar.rb in xcake-0.6.8
- old
+ new
@@ -61,11 +61,16 @@
t.type = :unit_test_bundle
t.platform = host_target.platform
t.deployment_target = host_target.deployment_target
t.language = host_target.language
- t.all_configurations.settings["TEST_HOST"] = "$(BUILT_PRODUCTS_DIR)/#{host_target.name}.app/#{host_target.name}"
- t.all_configurations.settings["BUNDLE_LOADER"] = "$(TEST_HOST)"
+ host_path = "#{host_target.name}.app/#{host_target.name}"
+ t.all_configurations.each do |c|
+ c.settings["TEST_HOST"] = "$(BUILT_PRODUCTS_DIR)/#{host_path}"
+ end
+ t.all_configurations.each do |c|
+ c.settings["BUNDLE_LOADER"] = "$(TEST_HOST)"
+ end
block.call(t) if block_given?
end
end