yonaskolb / yonaskolb/XcodeGen
Schemes: target/build type map doesn't seem to support non-array strings
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
I had a scheme like so:
schemes:
MyApp:
build:
targets:
MyApp: all
MyAppTests: test
However, the generated Xcode project showed it (in Xcode) with all build types enabled for both targets.
The docs seem to say this syntax should work: targets: [String:String] or [String:[String]]. (I'm assuming the above code is the first of those syntaxes.)
However, I had to change the YAML to be an array for Xcode to do the right thing:
schemes:
MyApp:
build:
targets:
MyApp: all
MyAppTests: [test]
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 with the build section in Docs/ProjectSpec.md and verify the documented [String:String] syntax against the generated Xcode project. Trace the scheme target configuration entry point, then reproduce the example with scalar and array values and confirm each target receives only its requested build type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift, yaml
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100