XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

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

Open chucker opened this issue 2 years ago • 0 comments

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]

chucker avatar Oct 30 '23 11:10 chucker