yonaskolb / yonaskolb/XcodeGen

Schemes: target/build type map doesn't seem to support non-array strings

Open
#1,411 0 comments 0 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 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.