mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Feature: Custom Working Directory (#1543)
* Added `customWorkingDirectory` and `useCustomWorkingDirectory` properties to `Scheme.Run` * Use new `customWorkingDirectory` and `useCustomWorkingDirectory` when generating `XCScheme.LaunchAction` * Updated ProjectSpec.md to document new `customWorkingDirectory` and `useCustomWorkingDirectory` properties * Fix for not setting customWorkingDirectory in the toJSONValue function * Added test to make sure usCustomWorkingDirectory value is true when the customWorkingDirectory is set to non nil * Change to infer the value of SchemaGenerator.LaunchAction.useCustomWorkingDirectory based on the value of Schema.Run.customWorkingDirectory * Removed useCustomWorkingDirectory from the project spec now that it is no longer user defined.
This commit is contained in:
@@ -359,6 +359,8 @@ public class SchemeGenerator {
|
||||
selectedDebuggerIdentifier: selectedDebuggerIdentifier(for: schemeTarget, run: scheme.run),
|
||||
selectedLauncherIdentifier: selectedLauncherIdentifier(for: schemeTarget, run: scheme.run),
|
||||
askForAppToLaunch: scheme.run?.askForAppToLaunch,
|
||||
customWorkingDirectory: scheme.run?.customWorkingDirectory,
|
||||
useCustomWorkingDirectory: scheme.run?.customWorkingDirectory != nil,
|
||||
allowLocationSimulation: allowLocationSimulation,
|
||||
locationScenarioReference: locationScenarioReference,
|
||||
enableGPUFrameCaptureMode: scheme.run?.enableGPUFrameCaptureMode ?? XCScheme.LaunchAction.defaultGPUFrameCaptureMode,
|
||||
|
||||
Reference in New Issue
Block a user