yonaskolb / XcodeGen

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

Test action macroExpansion allows unavailable buildable reference. #1471

Closed erneestoc closed 1 day ago

erneestoc commented 2 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 1 week ago

done!