yonaskolb / yonaskolb/XcodeGen
I am unable to create a group from a directory
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 |
|---|---|
I've tried different combinations specifying sources: [], e.g.
{ path: 'reactnative', group: 'reactnative' }->reactnativeis added as a directory{ path: 'reactnative', group: 'reactnative', buildPhase: 'resources' }->xcodegenfreezes{ path: 'reactnative/main.m', group: 'reactnative', buildPhase: 'resources' }->reactnativeis 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
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
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