@@ -26,12 +26,22 @@ final class BuildInteractorImpl: BuildInteractor {
26
26
}
27
27
28
28
func build( with arguments: BuildArguments ) throws {
29
- let arguments = try makeArguments ( scheme: arguments. scheme, platform: arguments. platform, arguments: arguments. arguments)
29
+ let arguments = try makeArguments (
30
+ scheme: arguments. scheme,
31
+ platform: arguments. platform,
32
+ arguments: arguments. arguments,
33
+ isQuiet: !verboseController. isVerbose ( )
34
+ )
30
35
try shellService. execute ( arguments: arguments)
31
36
}
32
37
33
38
func getBuildSettings( with arguments: BuildArguments ) throws -> String {
34
- let arguments = try makeArguments ( scheme: arguments. scheme, platform: arguments. platform, arguments: arguments. arguments + [ " -showBuildSettings " ] )
39
+ let arguments = try makeArguments (
40
+ scheme: arguments. scheme,
41
+ platform: arguments. platform,
42
+ arguments: arguments. arguments + [ " -showBuildSettings " ] ,
43
+ isQuiet: !verboseController. isVerbose ( )
44
+ )
35
45
return try shellService. executeWithResult ( arguments: arguments)
36
46
}
37
47
@@ -53,16 +63,21 @@ final class BuildInteractorImpl: BuildInteractor {
53
63
if arguments. isCodeCoverageEnabled {
54
64
additionalArguments += [ " -enableCodeCoverage " , " YES " ]
55
65
}
56
- return try makeArguments ( scheme: arguments. scheme, platform: arguments. platform, arguments: additionalArguments)
66
+ return try makeArguments (
67
+ scheme: arguments. scheme,
68
+ platform: arguments. platform,
69
+ arguments: additionalArguments,
70
+ isQuiet: arguments. isQuiet
71
+ )
57
72
}
58
73
59
- private func makeArguments( scheme: String , platform: Platform ? , arguments: [ String ] ) throws -> [ String ] {
74
+ private func makeArguments( scheme: String , platform: Platform ? , arguments: [ String ] , isQuiet : Bool ) throws -> [ String ] {
60
75
var buildArguments = [ " xcodebuild " , " -scheme " , scheme]
61
76
if let platform = platform {
62
77
let destination = try getDestination ( for: platform, scheme: scheme)
63
78
buildArguments += [ " -destination " , destination]
64
79
}
65
- if !verboseController . isVerbose ( ) {
80
+ if isQuiet {
66
81
buildArguments += [ " -quiet " ]
67
82
}
68
83
return buildArguments + arguments
0 commit comments