yonaskolb / yonaskolb/XcodeGen

I am unable to create a group from a directory

Open
#1,414 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

My goal is to list the reactnative directory, which contains all my sources, as a group.

What happens What I want
image image

I've tried different combinations specifying sources: [], e.g.

  • { path: 'reactnative', group: 'reactnative' } -> reactnative is added as a directory
  • { path: 'reactnative', group: 'reactnative', buildPhase: 'resources' } -> xcodegen freezes
  • { path: 'reactnative/main.m', group: 'reactnative', buildPhase: 'resources' } -> reactnative is added as a directory

I believe the problem might be with reactnative being both the target name and directory with sources. If I change the reactnative directory name to HelloWorld, and then use { path: 'HelloWorld/main.m', group: 'reactnative', buildPhase: 'resources' } as source, main.m will be added correctly under the reactnative group.

Any advice? 🙇

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 reproducing the issue with the reactnative source configurations shown in the report and inspect the generated Xcode project. Trace how a source path and its group are handled when the directory matches the target name. Done means the directory's files appear under the requested group without XcodeGen freezing.

Written by the indexing model from the issue text.

Assessment

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