File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ) ] = [
You can’t perform that action at this time.
0 commit comments