yonaskolb / yonaskolb/XcodeGen

Cannot access SettingPresets when XcodeGenKit is used as a library.

Open
#1,256 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'd like to use XcodeGenKit on my project as a library.
However, Bundle.main is used here.
https://github.com/yonaskolb/XcodeGen/blob/f65dad76252a876eae19ce72ea3649f95401e084/Sources/XcodeGenKit/SettingsBuilder.swift#L187

Bundle.main works well when we use XcodeGen as an executable target, but it doesn't work when we used XcodeGenKit as a library.

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 in Sources/XcodeGenKit/SettingsBuilder.swift at the referenced line and inspect how SettingPresets is accessed through Bundle.main. Verify the behavior when XcodeGenKit is consumed as a library rather than an executable; done means SettingPresets can be accessed in that library use case without breaking the executable target.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, tooling
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.