yonaskolb / yonaskolb/XcodeGen
How to keep files visible in Xcode but excluded from specific targets
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Description
In the GUI interface, we can exclude a file from a target by unchecking the checkbox in the target membership section, the excluded file is still visible in Xcode.
However, when using the excludes keyword in XcodeGen, the excluded file is not visible in Xcode.
Currently, I'm able to workaround that using the following configuration:
sources:
- path: HH
excludes:
- "**/*.{sh,yml}"
- path: HH
buildPhase: none
Is there a proper way of doing it? Any advise would be helpful :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the issue's sources configuration and the excludes and buildPhase: none behaviors described in the workaround. Determine whether XcodeGen supports keeping excluded files visible while omitting them from specific targets; done means documenting or identifying the supported configuration, with the behavior verified in a generated Xcode project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100