Address aspect for macos_command_line_application.
apple_common.AppleDebugOutputs is scoped to Apple bundle rules, which
macos_command_line_application is not. Removing that inner check for
the bundle rules allows this dSYM check to work for that rule.
PiperOrigin-RevId: 189229502
diff --git a/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl b/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
index 92b76a9..aa02a68 100644
--- a/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
+++ b/src/TulsiGenerator/Bazel/tulsi/tulsi_aspects.bzl
@@ -919,8 +919,9 @@
has_dsym = False
if hasattr(ctx.fragments, 'objc'):
- if apple_common.AppleDebugOutputs in target:
- has_dsym = ctx.fragments.objc.generate_dsym
+ # Check the fragment directly, as macos_command_line_application does not
+ # propagate apple_common.AppleDebugOutputs.
+ has_dsym = ctx.fragments.objc.generate_dsym
info = _struct_omitting_none(
artifacts=artifacts,