yonaskolb / yonaskolb/XcodeGen
Any way to disable automatically searching sources for Info.plist files?
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Hi there,
Currently, if the INFOPLIST_FILE build setting is not specified, Info.plist files are automatically searched for in the sources. However, the paths specified in the sources section are searched without regard to includes or excludes paths. So even if I exclude the Info.plist file from a source directory, it will still be found. Is this a bug? (I'm using XcodeGen version 2.25.0)
There also does not seem to be a way to disable this automatic search for Info.plist files (correct me if I am wrong). I've tried setting settingPresets: none but it did not disable this behavior.
My current workaround is to include each file individually instead of including the whole source directory to avoid this automatic searching.
This feature would be useful as I would prefer to specify INFOPLIST_FILE only in configuration files, rather than explicitly specifying them or having them included automatically (might include the wrong files) in target-level build settings.
Thanks!
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 automatic Info.plist search with source directories and includes or excludes, using the issue's XcodeGen 2.25.0 example as the baseline. Trace how INFOPLIST_FILE, settingPresets: none, source discovery, and configuration files interact; done means excluded files are not selected or the automatic search can be disabled while configuration-level settings still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100