Fix handling of scheme target build type

This commit is contained in:
Dave Lee
2018-01-25 11:50:03 -08:00
committed by GitHub
parent 1787231017
commit bcdd733f21
+1 -1
View File
@@ -212,7 +212,7 @@ extension Scheme.Build: JSONObjectConvertible {
case "none": buildTypes = []
case "testing": buildTypes = [.testing, .analyzing]
case "indexing": buildTypes = [.testing, .analyzing, .archiving]
default: buildTypes = BuildType.all
default: buildTypes = BuildType.from(jsonValue: string).map { [$0] } ?? BuildType.all
}
} else if let enabledDictionary = possibleBuildTypes as? [String: Bool] {
buildTypes = enabledDictionary.filter { $0.value }.flatMap { BuildType.from(jsonValue: $0.key) }