@@ -162,6 +162,93 @@ public extension XCScheme {
162162 super. init ( preActions, postActions)
163163 }
164164
165+ public convenience init (
166+ runnable: Runnable ? ,
167+ buildConfiguration: String ,
168+ preActions: [ ExecutionAction ] = [ ] ,
169+ postActions: [ ExecutionAction ] = [ ] ,
170+ macroExpansion: BuildableReference ? = nil ,
171+ selectedDebuggerIdentifier: String = XCScheme . defaultDebugger,
172+ selectedLauncherIdentifier: String = XCScheme . defaultLauncher,
173+ launchStyle: Style = . auto,
174+ askForAppToLaunch: Bool ? = nil ,
175+ pathRunnable: PathRunnable ? = nil ,
176+ customWorkingDirectory: String ? = nil ,
177+ useCustomWorkingDirectory: Bool = false ,
178+ ignoresPersistentStateOnLaunch: Bool = false ,
179+ debugDocumentVersioning: Bool = true ,
180+ debugServiceExtension: String = LaunchAction . defaultDebugServiceExtension,
181+ allowLocationSimulation: Bool = true ,
182+ locationScenarioReference: LocationScenarioReference ? = nil ,
183+ enableGPUFrameCaptureMode: GPUFrameCaptureMode = LaunchAction . defaultGPUFrameCaptureMode,
184+ disableGPUValidationMode: Bool = false ,
185+ enableGPUShaderValidationMode: Bool = false ,
186+ showGraphicsOverview: Bool = false ,
187+ logGraphicsOverview: Bool = false ,
188+ enableAddressSanitizer: Bool = false ,
189+ enableASanStackUseAfterReturn: Bool = false ,
190+ enableThreadSanitizer: Bool = false ,
191+ stopOnEveryThreadSanitizerIssue: Bool = false ,
192+ enableUBSanitizer: Bool = false ,
193+ stopOnEveryUBSanitizerIssue: Bool = false ,
194+ disableMainThreadChecker: Bool = false ,
195+ disablePerformanceAntipatternChecker: Bool = false ,
196+ stopOnEveryMainThreadCheckerIssue: Bool = false ,
197+ additionalOptions: [ AdditionalOption ] = [ ] ,
198+ commandlineArguments: CommandLineArguments ? = nil ,
199+ environmentVariables: [ EnvironmentVariable ] ? = nil ,
200+ language: String ? = nil ,
201+ region: String ? = nil ,
202+ showNonLocalizedStrings: Bool = false ,
203+ launchAutomaticallySubstyle: String ? = nil ,
204+ storeKitConfigurationFileReference: StoreKitConfigurationFileReference ? = nil ,
205+ customLaunchCommand: String ? = nil ,
206+ customLLDBInitFile: String ? = nil
207+ ) {
208+ self . init (
209+ runnable: pathRunnable ?? runnable,
210+ buildConfiguration: buildConfiguration,
211+ preActions: preActions,
212+ postActions: postActions,
213+ macroExpansion: macroExpansion,
214+ selectedDebuggerIdentifier: selectedDebuggerIdentifier,
215+ selectedLauncherIdentifier: selectedLauncherIdentifier,
216+ launchStyle: launchStyle,
217+ askForAppToLaunch: askForAppToLaunch,
218+ customWorkingDirectory: customWorkingDirectory,
219+ useCustomWorkingDirectory: useCustomWorkingDirectory,
220+ ignoresPersistentStateOnLaunch: ignoresPersistentStateOnLaunch,
221+ debugDocumentVersioning: debugDocumentVersioning,
222+ debugServiceExtension: debugServiceExtension,
223+ allowLocationSimulation: allowLocationSimulation,
224+ locationScenarioReference: locationScenarioReference,
225+ enableGPUFrameCaptureMode: enableGPUFrameCaptureMode,
226+ disableGPUValidationMode: disableGPUValidationMode,
227+ enableGPUShaderValidationMode: enableGPUShaderValidationMode,
228+ showGraphicsOverview: showGraphicsOverview,
229+ logGraphicsOverview: logGraphicsOverview,
230+ enableAddressSanitizer: enableAddressSanitizer,
231+ enableASanStackUseAfterReturn: enableASanStackUseAfterReturn,
232+ enableThreadSanitizer: enableThreadSanitizer,
233+ stopOnEveryThreadSanitizerIssue: stopOnEveryThreadSanitizerIssue,
234+ enableUBSanitizer: enableUBSanitizer,
235+ stopOnEveryUBSanitizerIssue: stopOnEveryUBSanitizerIssue,
236+ disableMainThreadChecker: disableMainThreadChecker,
237+ disablePerformanceAntipatternChecker: disablePerformanceAntipatternChecker,
238+ stopOnEveryMainThreadCheckerIssue: stopOnEveryMainThreadCheckerIssue,
239+ additionalOptions: additionalOptions,
240+ commandlineArguments: commandlineArguments,
241+ environmentVariables: environmentVariables,
242+ language: language,
243+ region: region,
244+ showNonLocalizedStrings: showNonLocalizedStrings,
245+ launchAutomaticallySubstyle: launchAutomaticallySubstyle,
246+ storeKitConfigurationFileReference: storeKitConfigurationFileReference,
247+ customLaunchCommand: customLaunchCommand,
248+ customLLDBInitFile: customLLDBInitFile
249+ )
250+ }
251+
165252 // swiftlint:disable:next function_body_length
166253 override init ( element: AEXMLElement ) throws {
167254 buildConfiguration = element. attributes [ " buildConfiguration " ] ?? LaunchAction . defaultBuildConfiguration
0 commit comments