yonaskolb / yonaskolb/XcodeGen
Cannot exclude files from a target path
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Trying to exclude some .m files in a directory from being targeted, as I need to specifically declare them one by one and add the right compiler flags to them. When I include them in the excludes list, they do not get excluded. .c files do however get excluded..
Isn't excluded:
sources:
- path: "MPOS"
excludes:
- "/../../aFile.m"
Is Excluded:
sources:
- path: "MPOS"
excludes:
- "/../../anotherFile.c"
When built, anotherFile.c has the correct compiler flags but aFile.m doesn't:
- path: "/../../aFile.m"
compilerFlags: "-fno-objc-arc -w"
- path: "/../../anotherFile.c"
compilerFlags: "-fno-objc-arc -w"
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 by reproducing the issue with the shown XcodeGen YAML, comparing exclusion handling for the .m and .c paths and inspecting the generated target entries. Done means the .m file is excluded like the .c file while explicitly declared compiler flags remain applied to the intended files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift, yaml
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100