Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 6bb7627

Browse files
committed
feat: add the App Clip's URL to the Run action
1 parent 777bc89 commit 6bb7627

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Sources/XcodeGraph/Models/RunAction.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public struct RunAction: Equatable, Codable, Sendable {
1717
public let metalOptions: MetalOptions?
1818
public let expandVariableFromTarget: TargetReference?
1919
public let launchStyle: LaunchStyle
20+
public let appClipInvocationURLString: String?
2021

2122
// MARK: - Init
2223

@@ -33,7 +34,8 @@ public struct RunAction: Equatable, Codable, Sendable {
3334
diagnosticsOptions: SchemeDiagnosticsOptions,
3435
metalOptions: MetalOptions? = nil,
3536
expandVariableFromTarget: TargetReference? = nil,
36-
launchStyle: LaunchStyle = .automatically
37+
launchStyle: LaunchStyle = .automatically,
38+
appClipInvocationURLString: String?
3739
) {
3840
self.configurationName = configurationName
3941
self.attachDebugger = attachDebugger
@@ -48,6 +50,7 @@ public struct RunAction: Equatable, Codable, Sendable {
4850
self.metalOptions = metalOptions
4951
self.expandVariableFromTarget = expandVariableFromTarget
5052
self.launchStyle = launchStyle
53+
self.appClipInvocationURLString = appClipInvocationURLString
5154
}
5255
}
5356

@@ -72,7 +75,8 @@ public struct RunAction: Equatable, Codable, Sendable {
7275
apiValidation: true
7376
),
7477
expandVariableFromTarget: TargetReference? = nil,
75-
launchStyle: LaunchStyle = .automatically
78+
launchStyle: LaunchStyle = .automatically,
79+
appClipInvocationURLString: String? = nil
7680
) -> RunAction {
7781
RunAction(
7882
configurationName: configurationName,
@@ -87,7 +91,8 @@ public struct RunAction: Equatable, Codable, Sendable {
8791
diagnosticsOptions: diagnosticsOptions,
8892
metalOptions: metalOptions,
8993
expandVariableFromTarget: expandVariableFromTarget,
90-
launchStyle: launchStyle
94+
launchStyle: launchStyle,
95+
appClipInvocationURLString: appClipInvocationURLString
9196
)
9297
}
9398
}

Sources/XcodeGraphMapper/Mappers/Schemes/XCSchemeMapper.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ struct XCSchemeMapper: SchemeMapping {
217217
filePath: nil,
218218
arguments: arguments,
219219
options: RunActionOptions(),
220-
diagnosticsOptions: diagnosticsOptions
220+
diagnosticsOptions: diagnosticsOptions,
221+
appClipInvocationURLString: action.appClipInvocationURLString
221222
)
222223
}
223224

Tests/XcodeGraphTests/Models/RunActionTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ final class RunActionTests: XCTestCase {
3131
diagnosticsOptions: SchemeDiagnosticsOptions(
3232
mainThreadCheckerEnabled: true,
3333
performanceAntipatternCheckerEnabled: true
34-
)
34+
),
35+
appClipInvocationURLString: "app-clips-url"
3536
)
3637

3738
// Then

0 commit comments

Comments
 (0)