diff --git a/Tests/TuistAutomationTests/XcodeBuild/XcodeBuildControllerTests.swift b/Tests/TuistAutomationTests/XcodeBuild/XcodeBuildControllerTests.swift index c06f04dc6..852d27bf6 100644 --- a/Tests/TuistAutomationTests/XcodeBuild/XcodeBuildControllerTests.swift +++ b/Tests/TuistAutomationTests/XcodeBuild/XcodeBuildControllerTests.swift @@ -41,9 +41,8 @@ final class XcodeBuildControllerTests: TuistUnitTestCase { let shouldOutputBeColoured = true environment.shouldOutputBeColoured = shouldOutputBeColoured - var command = ["/usr/bin/xcrun", "xcodebuild", "-scheme", scheme] + var command = ["/usr/bin/xcrun", "xcodebuild", "clean", "build", "-scheme", scheme] command.append(contentsOf: target.xcodebuildArguments) - command.append(contentsOf: ["clean", "build"]) system.succeedCommand(command, output: "output") var parseCalls: [(String, Bool)] = []