Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Sources/XcodeGraph/Models/ProfileAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public struct ProfileAction: Equatable, Codable, Sendable {
public let preActions: [ExecutionAction]
public let postActions: [ExecutionAction]
public let executable: TargetReference?
public let askForAppToLaunch: Bool
public let arguments: Arguments?

// MARK: - Init
Expand All @@ -17,12 +18,14 @@ public struct ProfileAction: Equatable, Codable, Sendable {
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = [],
executable: TargetReference? = nil,
askForAppToLaunch: Bool = false,
arguments: Arguments? = nil
) {
self.configurationName = configurationName
self.preActions = preActions
self.postActions = postActions
self.executable = executable
self.askForAppToLaunch = askForAppToLaunch
self.arguments = arguments
}
}
Expand All @@ -35,13 +38,15 @@ public struct ProfileAction: Equatable, Codable, Sendable {
postActions: [ExecutionAction] = [],
// swiftlint:disable:next force_try
executable: TargetReference? = TargetReference(projectPath: try! AbsolutePath(validating: "/Project"), name: "App"),
askForAppToLaunch: Bool = false,
arguments: Arguments? = Arguments.test()
) -> ProfileAction {
ProfileAction(
configurationName: configurationName,
preActions: preActions,
postActions: postActions,
executable: executable,
askForAppToLaunch: askForAppToLaunch,
arguments: arguments
)
}
Expand Down
5 changes: 5 additions & 0 deletions Sources/XcodeGraph/Models/RunAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public struct RunAction: Equatable, Codable, Sendable {
public let diagnosticsOptions: SchemeDiagnosticsOptions
public let metalOptions: MetalOptions?
public let expandVariableFromTarget: TargetReference?
public let askForAppToLaunch: Bool
public let launchStyle: LaunchStyle
public let appClipInvocationURL: URL?
public var customWorkingDirectory: AbsolutePath?
Expand All @@ -36,6 +37,7 @@ public struct RunAction: Equatable, Codable, Sendable {
diagnosticsOptions: SchemeDiagnosticsOptions,
metalOptions: MetalOptions? = nil,
expandVariableFromTarget: TargetReference? = nil,
askForAppToLaunch: Bool = false,
launchStyle: LaunchStyle = .automatically,
appClipInvocationURL: URL? = nil,
customWorkingDirectory: AbsolutePath? = nil,
Expand All @@ -53,6 +55,7 @@ public struct RunAction: Equatable, Codable, Sendable {
self.diagnosticsOptions = diagnosticsOptions
self.metalOptions = metalOptions
self.expandVariableFromTarget = expandVariableFromTarget
self.askForAppToLaunch = askForAppToLaunch
self.launchStyle = launchStyle
self.appClipInvocationURL = appClipInvocationURL
self.customWorkingDirectory = customWorkingDirectory
Expand Down Expand Up @@ -81,6 +84,7 @@ public struct RunAction: Equatable, Codable, Sendable {
apiValidation: true
),
expandVariableFromTarget: TargetReference? = nil,
askForAppToLaunch: Bool = false,
launchStyle: LaunchStyle = .automatically,
appClipInvocationURL: URL? = nil,
customWorkingDirectory: AbsolutePath? = nil,
Expand All @@ -99,6 +103,7 @@ public struct RunAction: Equatable, Codable, Sendable {
diagnosticsOptions: diagnosticsOptions,
metalOptions: metalOptions,
expandVariableFromTarget: expandVariableFromTarget,
askForAppToLaunch: askForAppToLaunch,
launchStyle: launchStyle,
appClipInvocationURL: appClipInvocationURL,
customWorkingDirectory: customWorkingDirectory,
Expand Down
1 change: 1 addition & 0 deletions Tests/XcodeGraphTests/Models/ProfileActionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ final class ProfileActionTests: XCTestCase {
projectPath: try AbsolutePath(validating: "/path/to/project"),
name: "name"
),
askForAppToLaunch: true,
arguments: .init(
environmentVariables: [
"key": EnvironmentVariable(value: "value", isEnabled: true),
Expand Down
1 change: 1 addition & 0 deletions Tests/XcodeGraphTests/Models/RunActionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ final class RunActionTests: XCTestCase {
mainThreadCheckerEnabled: true,
performanceAntipatternCheckerEnabled: true
),
askForAppToLaunch: true,
appClipInvocationURL: URL(string: "https://app-clips-url.com/example")
)

Expand Down