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

Commit dcd44e7

Browse files
authored
feat: Add Target.validatedSources to filter the sources that are invalid (#153)
* Expose an API to return the validated sources * Mark supportsSources as deprecated
1 parent 608fe67 commit dcd44e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/XcodeGraph/Models/Target.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ public struct Target: Equatable, Hashable, Comparable, Codable, Sendable {
204204
}
205205
}
206206

207+
@available(*, deprecated, message: """
208+
Whether a target supports sources or not is not as binary decision as we originally assumed and codified in this getter.
209+
Because it's something that depends on other variables, we decided to pull this logic out of tuist/XcodeGraph into tuist/tuist.
210+
If you are interested in having a similar logic in your XcodeGraph-dependent project, you might want to check out tuist/tuist.
211+
""")
207212
/// Returns true if the target supports having sources.
208213
public var supportsSources: Bool {
209214
switch product {

0 commit comments

Comments
 (0)