fix buildable ref

This commit is contained in:
Ernesto Cambuston 2024-04-20 19:48:32 -07:00
parent 2a367acb0f
commit 2b500e797a
No known key found for this signature in database
GPG Key ID: 22BDA9CCEB4981AD

View File

@ -282,9 +282,11 @@ public class SchemeGenerator {
XCScheme.TestPlanReference(reference: "container:\(testPlan.path)", default: defaultTestPlanIndex == index)
} ?? []
let testMacroExpansionBuildableRef = testBuildTargetEntries.map(\.buildableReference).contains(buildableReference) ? buildableReference : testBuildTargetEntries.first?.buildableReference
let testAction = XCScheme.TestAction(
buildConfiguration: scheme.test?.config ?? defaultDebugConfig.name,
macroExpansion: buildableReference,
macroExpansion: testMacroExpansionBuildableRef,
testables: testables,
testPlans: testPlans.isEmpty ? nil : testPlans,
preActions: scheme.test?.preActions.map(getExecutionAction) ?? [],