yonaskolb / yonaskolb/XcodeGen

Issues with SettingsGroups

Open
#1,068 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

Hello, not sure if it's me misunderstanding how they work, but I'm having issues with getting settingsGroups to work.

I place something akin to this

name: TestProj
settingsGroups:
  watchOS:
    base:
      TARGETED_DEVICE_FAMILY: 4
      WATCHOS_DEPLOYMENT_TARGET: 4.0
  iOS:
    base:
      IPHONEOS_DEPLOYMENT_TARGET: 11.0
options:
  createIntermediateGroups: true
  defaultConfig: Debug
  groupSortPosition: bottom
  transitivelyLinkDependencies: false
targets:
  appLib:
    platform: [iOS, watchOS]
    platformSuffix: "${platform}"
    productName: "appLib${platform}"
    settings:
      groups:
        - "${project}"
      configs:
        ENABLE_BITCODE: YES
    sources:
    - path: appLib/Test.swift
    - path: appLib/Test2.swift
    type: framework

But on running xcodegen, I always get - Invalid settings group "${project}"

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

Use the supplied YAML as the reproduction case and run xcodegen to confirm the invalid settings group error. Trace how settingsGroups and the ${project} group reference are validated, then verify the expected behavior or syntax against the resulting generated project and error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.