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

- old
+ new

@@ -95,16 +95,19 @@ test_target.deployment_target = host_target.deployment_target test_target.language = host_target.language if host_target.type == :application test_target.all_configurations.each do |c| - - 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}" + if test_target.type == :ui_test_bundle + # Do nothing as they break UITests + # For more details https://github.com/jcampbell05/xcake/issues/115 else - c.settings['TEST_HOST'] = "$(BUILT_PRODUCTS_DIR)/#{host_target.name}.app/#{host_target.name}" + 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 end