yonaskolb / yonaskolb/XcodeGen

Get path to current spec file folder?

Open
#1,309 0 comments 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

Hello,

I am using spec file nesting similar to this:
master -> folderA -> specA.yaml
-> folderB -> specB.yaml

specB.yaml includes specA.yaml. In specA, I am defining an Objective-C module that needs to specify MODULEMAP_FILE. But it needs to be an absolute path computed relatively to specA.yaml. Is there a variable that would give me access to current spec folder path?

Thank you

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 with the nested specA.yaml/specB.yaml example and trace how XcodeGen resolves included specs and MODULEMAP_FILE values. Define and document how a current spec folder path would be exposed, then verify that specA.yaml can use it to produce the required absolute module-map path.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c, swift
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.