Skip to content

Commit 7936f14

Browse files
committed
Fixing unittests
1 parent 114945d commit 7936f14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/UnitTests/XcodeToolsTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ private extension XcodeToolsTests {
4848
let archiveResult = "ARCHIVE_RESULT"
4949
let expectedDerivedDataPath = "\(projectDirectoryPath)/.build"
5050
var expectedHandleExecuteCalls: [String] = {
51+
let command = "cd \(projectDirectoryPath); xcodebuild clean build -scheme \"\(scheme)\" -derivedDataPath .build BUILD_LIBRARY_FOR_DISTRIBUTION=YES"
52+
let iOSSpecificParameters = "-sdk `xcrun --sdk iphonesimulator --show-sdk-path` -destination \"generic/platform=iOS\""
5153
switch projectType {
5254
case .swiftPackage:
53-
["cd \(projectDirectoryPath); xcodebuild clean build -scheme \"\(scheme)\" -destination \"generic/platform=iOS\" -derivedDataPath .build -sdk `xcrun --sdk iphonesimulator --show-sdk-path` BUILD_LIBRARY_FOR_DISTRIBUTION=YES -skipPackagePluginValidation"]
55+
return ["\(command) \(iOSSpecificParameters) -skipPackagePluginValidation"]
5456
case let .xcodeProject(scheme):
55-
["cd \(projectDirectoryPath); xcodebuild clean build -scheme \"\(scheme)\" -destination \"generic/platform=iOS\" -derivedDataPath .build -sdk `xcrun --sdk iphonesimulator --show-sdk-path` BUILD_LIBRARY_FOR_DISTRIBUTION=YES"]
57+
return ["\(command) \(iOSSpecificParameters)"]
5658
}
5759
}()
5860
var expectedHandleLogCalls: [(message: String, subsystem: String)] = [

0 commit comments

Comments
 (0)