Skip to content

Commit bc226fa

Browse files
author
Seweryn Plażuk
committed
Collect framework dSYMs in test bundle debug dependencies
1 parent b7b640b commit bc226fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apple/internal/testing/apple_test_bundle_support.bzl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,14 @@ def _apple_test_bundle_impl(*, ctx, product_type):
412412
debug_dependencies.append(test_host)
413413

414414
if hasattr(ctx.attr, "frameworks"):
415-
targets_to_avoid = list(ctx.attr.frameworks)
415+
frameworks = list(ctx.attr.frameworks)
416+
targets_to_avoid = frameworks
417+
# Collect framework dSYMs via debug dependencies since frameworks are excluded from linking,
418+
# so their dSYMs need to be collected separately
419+
debug_dependencies.extend(frameworks)
416420
else:
417421
targets_to_avoid = []
422+
418423
if bundle_loader:
419424
targets_to_avoid.append(bundle_loader)
420425

0 commit comments

Comments
 (0)