yonaskolb / yonaskolb/XcodeGen

Any way to disable automatically searching sources for Info.plist files?

Open
#1,282 3 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.