MobileNativeFoundation / rules_xcodeproj

Bazel rules for generating Xcode projects.
MIT License
502 stars 76 forks source link

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

Open brentleyjones opened 1 month ago

brentleyjones commented 1 month ago

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