diff --git a/Sources/XcodeProj/Scheme/XCScheme+LaunchAction.swift b/Sources/XcodeProj/Scheme/XCScheme+LaunchAction.swift index 53d52915..88989823 100644 --- a/Sources/XcodeProj/Scheme/XCScheme+LaunchAction.swift +++ b/Sources/XcodeProj/Scheme/XCScheme+LaunchAction.swift @@ -48,7 +48,7 @@ public extension XCScheme { runnable as? PathRunnable } set { - self.pathRunnable = newValue + runnable = newValue } } @@ -87,7 +87,6 @@ public extension XCScheme { // MARK: - Init - @available(*, deprecated, message: "Use the init() that consolidates pathRunnable and runnable into a single parameter.") public init(runnable: Runnable?, buildConfiguration: String, preActions: [ExecutionAction] = [], @@ -97,7 +96,6 @@ public extension XCScheme { selectedLauncherIdentifier: String = XCScheme.defaultLauncher, launchStyle: Style = .auto, askForAppToLaunch: Bool? = nil, - pathRunnable _: PathRunnable? = nil, customWorkingDirectory: String? = nil, useCustomWorkingDirectory: Bool = false, ignoresPersistentStateOnLaunch: Bool = false, @@ -170,8 +168,9 @@ public extension XCScheme { super.init(preActions, postActions) } + @available(*, deprecated, message: "Use the init() that consolidates pathRunnable and runnable into a single parameter.") public convenience init( - pathRunnable: PathRunnable?, + runnable: Runnable?, buildConfiguration: String, preActions: [ExecutionAction] = [], postActions: [ExecutionAction] = [], @@ -180,6 +179,7 @@ public extension XCScheme { selectedLauncherIdentifier: String = XCScheme.defaultLauncher, launchStyle: Style = .auto, askForAppToLaunch: Bool? = nil, + pathRunnable: PathRunnable?, customWorkingDirectory: String? = nil, useCustomWorkingDirectory: Bool = false, ignoresPersistentStateOnLaunch: Bool = false, @@ -222,7 +222,6 @@ public extension XCScheme { selectedLauncherIdentifier: selectedLauncherIdentifier, launchStyle: launchStyle, askForAppToLaunch: askForAppToLaunch, - pathRunnable: pathRunnable, customWorkingDirectory: customWorkingDirectory, useCustomWorkingDirectory: useCustomWorkingDirectory, ignoresPersistentStateOnLaunch: ignoresPersistentStateOnLaunch,