         launchStyle = nil
       }
 
-      var additionalBuildTargets = target.buildActionDependencies.map() {
-        ($0, projectBundleName, XcodeScheme.makeBuildActionEntryAttributes())
-      }
-      if let host = extensionHosts[entry.label] {
-        guard let hostTarget = targetForLabel(host.label) else {
-          localizedMessageLogger.warning("XCSchemeGenerationFailed",
-                                         comment: "Warning shown when generation of an Xcode scheme failed for build target %1$@",
-                                         details: "Extension host could not be resolved.",
-                                         context: config.projectName,
-                                         values: entry.label.value)
-          continue
-        }
-        let hostTargetTuple =
-            (hostTarget, projectBundleName, XcodeScheme.makeBuildActionEntryAttributes())
-        additionalBuildTargets.append(hostTargetTuple)
-      }
-
       var schemeEnvVars = environmentVariables(for: entry)
       if let genRunfiles = config.options[.GenerateRunfiles].commonValueAsBool,
          let productType = entry.productType,

        schemeEnvVars["TEST_SRCDIR"] = "\(bazelBinPath)/$(TULSI_BUILD_PATH)/$(TARGET_NAME).runfiles"
      }

      let scheme = XcodeScheme(target: target,
                               project: info.project,
                               projectBundleName: projectBundleName,
                               testActionBuildConfig: runTestTargetBuildConfigPrefix + "Debug",
                               profileActionBuildConfig: runTestTargetBuildConfigPrefix + "Release",
                               appExtension: appExtension,
                               extensionType: extensionType,
                               launchStyle: launchStyle,
                               runnableDebuggingMode: runnableDebuggingMode,
                               additionalBuildTargets: additionalBuildTargets,
                               commandlineArguments: commandlineArguments(for: entry),
                               environmentVariables: schemeEnvVars,
                               preActionScripts:preActionScripts(for: entry),
                               postActionScripts:postActionScripts(for: entry),
                               localizedMessageLogger: localizedMessageLogger)
      let xmlDocument = scheme.toXML()


      let data = xmlDocument.xmlData(options: XMLNode.Options.nodePrettyPrint)
      try writeDataHandler(url, data)
      updateManagementDictionary(&schemeManagementDict, schemeName: filename)
    }

    func extractTestTargets(_ testSuite: RuleEntry) -> (Set<PBXTarget>, PBXTarget?) {

        continue
      }

      let targetType = entry.pbxTargetType ?? .Application

      var appExtension: Bool = false
