MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Feature Request: Auto-discovery of top-level targets

Open
#1,033 4 comments 3 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

In our current project generator, top-level targets are auto-discovered based on the provided target kinds. For example, if we request ios_application and ios_unit_test in the //path/to/package package, all ios_application and ios_unit_test targets defined in that package will be included in the generated project. The motivation is to remove the need to update the xcodeproj target whenever someone adds a new target.

The xcodeproj rule currently requires top-level targets to be explicitly specified via the top_level_targets attribute.

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 at the xcodeproj rule and its top_level_targets attribute, then trace how target kinds are currently used for project generation. Define how automatic discovery should select all matching targets in the package and how that interacts with explicit top-level targets. Done means new matching targets are included without updating the xcodeproj target configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.