yonaskolb / yonaskolb/XcodeGen

Confusing error message when missing required property

Open
#1,201 1 comment 1 reaction 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'm using xcodegen 2.27.0, installed via homebrew. I wrote a project spec, and had an info: key to include a Plist, but I neglected to add a path property to it. That produced this error:

Parsing project spec failed: Decoding failed at "path": Nothing found

This confused me to the point where I cloned the project and stepped through it in Xcode until I figured out where the error was coming from. It would be great if this error could at least tell me that it's trying to decode a Plist object, which would have given me a clue.

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

Reproduce the failure in xcodegen 2.27.0 with an info: entry containing a Plist without a path. Trace the decoding failure from the project spec parser and make the resulting error identify the Plist object; done means the missing-property message gives enough context to locate the invalid spec entry.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.