yonaskolb / yonaskolb/XcodeGen

Package declaration doesn't expand settings

Open
#1,323 1 comment 0 reactions 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.