yonaskolb / yonaskolb/XcodeGen
Package declaration doesn't expand settings
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Given the config file (fragment):
settings:
MY_LIBRARY_BRANCH: "feature"
packages:
MyLibrary:
url: https://github.com/MyLibrary
branch: "${MY_LIBRARY_BRANCH}"
I would expect the generated files to look for the "feature" branch of my library, but instead Xcode resolve packages gives me an error and reports that it can't find the branch "${MY_LIBRARY_BRANCH}"
Also tried it with MY_LIBRARY_BRANCH at file scope and within a "base" tag and none of the above worked.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the configuration fragment with MY_LIBRARY_BRANCH under settings, then compare the generated package declaration with Xcode's package resolution error. Check the alternative file-scope and base-tag placements as well. Done means the generated files use the expanded "feature" branch instead of the literal variable name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100