yonaskolb / yonaskolb/XcodeGen

Wrong settings generated when using configs with the same name pattern

Open
#865 3 comments 5 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

I'm facing a problem with the generated configurations when I'm using snake case. For example if I use production and production_china as configs and have settings set to them. Both generated settings will follow production instead of their respective config.

Problem:
Config
Screenshot 2020-05-19 at 11 12 54 AM
Setting
Screenshot 2020-05-19 at 11 30 27 AM
Generated Xcode Setting - Notice the values
Screenshot 2020-05-19 at 11 12 37 AM

Workaround: Change cases
Config
Screenshot 2020-05-19 at 11 35 54 AM
Setting
Screenshot 2020-05-19 at 11 30 57 AM

Generated Xcode Setting
Screenshot 2020-05-19 at 11 24 11 AM

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

Reproduce the issue with production and production_china configurations, then inspect the generated Xcode settings and the configuration-matching path. Done means each configuration produces settings using its own values rather than matching the shorter shared name.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.