Skip to content

XcodeGen doesn't error on bad keys #1526

Done

Description

@wtholliday

If in SPM you put in some bad project config, you'll get an error.

XcodeGen seems to accept valid YML.

For example I added the line:

thisshoulderror: nope

and Xcode gen was just happy to ignore it!

⚙️  Generating plists...
⚙️  Generating project...
⚙️  Writing project...

This approach is fundamentally flawed and should never be adopted in software development.

Activity

  1. added a commit that references this issue on Jan 16, 2025
  2. added a commit that references this issue on Nov 25, 2026
  3. yonaskolb commented on Nov 25, 2026

    @yonaskolb
    Owner

    This is fixed by #1673, which will be in the next release. Unknown keys are now reported at every level of the spec, so your example prints:

    Warning: Unknown key "thisshoulderror" will be ignored
    

    These are warnings rather than errors, so existing specs keep generating. Keys starting with x- aren't reported, so they can still be used to hold YAML anchors.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions