lib/xcake/dsl/project/sugar.rb in xcake-0.8.8 vs lib/xcake/dsl/project/sugar.rb in xcake-0.8.9

- old
+ new

@@ -93,16 +93,19 @@ test_target.target_dependencies << host_target test_target.platform = host_target.platform test_target.deployment_target = host_target.deployment_target test_target.language = host_target.language - host_path = "#{host_target.name}.app/#{host_target.name}" - - # TODO: Custom Xcode setting constant if host_target.type == :application test_target.all_configurations.each do |c| - c.settings['TEST_HOST'] = "$(BUILT_PRODUCTS_DIR)/#{host_path}" + c.settings['BUNDLE_LOADER'] = '$(TEST_HOST)' + + if host_target.platform == :osx + c.settings["TEST_HOST"] = "$(BUILT_PRODUCTS_DIR)/#{host_target.name}.app/Contents/MacOS/#{host_target.name}" + else + c.settings['TEST_HOST'] = "$(BUILT_PRODUCTS_DIR)/#{host_target.name}.app/#{host_target.name}" + end end end end public