MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Bug: Target shows multiple targets when running custom configurations (Simulator, Device)

Open
#2,179 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

When employing custom configurations, the target name includes (Simulator, Device) when it should omit.

CleanShot 2023-05-10 at 13 06 14@2x
Reproduction steps

Create a top_level_target that is impacted by multiple configurations via xcode_configurations

Expected behavior

No (Simulator, Device)

rules_xcodeproj version

14.1

Xcode version

14.3

Bazel version

6.2

rules_apple version

No response

rules_swift version

No response

Additional information

No response

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

Reproduce the issue by creating a top_level_target affected by multiple xcode_configurations, then inspect the generated Xcode project target names. The fix is complete when custom configurations no longer add the “(Simulator, Device)” suffix, while the target remains correctly generated for the reported Swift, Xcode, and Bazel versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.