yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project
MIT License
7.08k stars 821 forks source link

Test action macroExpansion allows unavailable buildable reference. #1471

Closed erneestoc closed 4 months ago

erneestoc commented 7 months ago

Relates to: https://github.com/yonaskolb/XcodeGen/pull/1468

Since the buildableReference passed to the test action macroExpansion param is literally the first buildable reference, there's a chance that buildable reference is not part of the test buildable references, so "Expand Variables Based On" defaults to None (for the test action)

Screenshot 2024-04-20 at 7 51 21 PM

A potential solution is to use the first buildable reference from testBuildTargetEntries instead if the buildableReference is not part of (testBuildTargetEntries).

erneestoc commented 5 months ago

done!