MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Bug: `xcodeproj.xcode_configurations` doesn't support `select()`

Open
#3,039 0 comments 3 reactions 1 assignee View on GitHub

@brentleyjones is already working on this.

Since Jun 6, 2024.

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

Description

Description

Using select() in xcodeproj.xcode_configurations results in this error:

	File "/private/var/tmp/_bazel_brentley.jones/b99e0a057b45e1bdfe9189087df384f2/external/rules_xcodeproj~/xcodeproj/internal/xcodeproj_macro.bzl", line 582, column 53, in xcodeproj
		for configuration, flags in xcode_configurations.items():
Error: 'select' value has no field or method 'items'
Reproduction steps

Per above.

Expected behavior

select() works.

Since we create the actual dictionary in the runner, we might be able to do most of the work in the runner.

rules_xcodeproj version

2.4.0

Xcode version

n/a

Bazel version

7.2.0.rc3

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.