yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
6.88k stars 809 forks source link

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

Open chucker opened 8 months ago

chucker commented 8 months ago

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]