mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-11 12:56:03 +03:00
Use convenience initializer for TargetReference.local
This commit is contained in:
parent
fbc7e9442d
commit
d3560e7f6b
@ -127,7 +127,7 @@ public class SchemeGenerator {
|
||||
|
||||
let testTargets = scheme.test?.targets ?? []
|
||||
let testBuildTargets = testTargets.map {
|
||||
Scheme.BuildTarget(target: TargetReference(name: $0.name, location: .local), buildTypes: BuildType.testOnly)
|
||||
Scheme.BuildTarget(target: .local($0.name), buildTypes: BuildType.testOnly)
|
||||
}
|
||||
|
||||
let testBuildTargetEntries = try testBuildTargets.map(getBuildEntry)
|
||||
@ -260,7 +260,7 @@ extension Scheme {
|
||||
public init(name: String, target: Target, targetScheme: TargetScheme, debugConfig: String, releaseConfig: String) {
|
||||
self.init(
|
||||
name: name,
|
||||
build: .init(targets: [Scheme.BuildTarget(target: TargetReference(name: target.name, location: .local))]),
|
||||
build: .init(targets: [Scheme.BuildTarget(target: TargetReference.local(target.name))]),
|
||||
run: .init(
|
||||
config: debugConfig,
|
||||
commandLineArguments: targetScheme.commandLineArguments,
|
||||
|
Loading…
Reference in New Issue
Block a user