 				.catch { _ in .empty() }
 		}
 		.concat(identity)
-		.filter { $0 == .Framework }
+		.filter(shouldBuildProductType)
 		// If we find any framework target, we should indeed build this scheme.
 		.map { _ in true }
 		// Otherwise, nope.


		return launchTask(buildScheme, standardOutput: stdoutSink)
			.then(BuildSettings.loadWithArguments(copiedArgs))
	}

	let buildSignal: ColdSignal<NSURL> = BuildSettings.platformForScheme(scheme, inProject: project)

	}
}

/// Determines whether the specified product type should be built automatically.
private func shouldBuildProductType(productType: ProductType) -> Bool {
	return productType == .Framework
}

/// Determines whether the given scheme should be built automatically.
private func shouldBuildScheme(buildArguments: BuildArguments) -> ColdSignal<Bool> {
	precondition(buildArguments.scheme != nil)
