MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Feature Request: Add ability to provide custom sorting of group children

Open
#3,131 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Swift
Stars
626
Forks
124
PR merge metrics
No merged PRs in 30d

Description

We organize our modules into layers where each layer can only import code from the layer “below” it. In our current generated project file we sort those layer folders to reflect that hierarchy. We'd like to be able to provide custom sorting logic for specific Xcode project groups to communicate that hierarchy to developers in the project structure.

Here's our existing XcodeGen customization:

options:
  groupOrdering:
    - order:
        - ConsumerApp
        - Packages
        - CommonPackages
    - pattern: "Packages"
      order:
        - AppClip
        - AppIntegration
        - LegacyApp
        - Modules
        - Routing
        - DomainInterfaces
        - Services
        - Capabilities
        - Networking
        - Foundation
        - Resources

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

No repository files or tests are named; start by locating the Xcode project generation entry point and the code that orders group children. Compare the requested top-level and pattern-specific order rules against current generated output; done means generated groups follow the configured custom ordering.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
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.