yonaskolb / yonaskolb/XcodeGen

Different exit code when unable to find SettingPresets

Open
#877 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

The following log output does not clearly state what the underlying error is.
Furthermore since the exit code is still 0, it is very hard to find the error in a long running build script.

No "base" settings found
No "debug config" settings found
No "release config" settings found
No "iOS" settings found

Instead of the current behavior a clear error message should be output.
An example would be:
Unable to find SettingPresets in default location. Make sure that the directory share/xcodegen/SettingPresets exists.

And xcodegen should exit with an error code != 0.

xcodegen Version: 2.15.1

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

Start by tracing the xcodegen CLI path that reports missing SettingPresets and the handling of its default location. Reproduce the missing-directory case, then verify that it emits a clear error naming the expected location and exits with a nonzero status.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.