bazel icon indicating copy to clipboard operation
bazel copied to clipboard

dsym support on MacOS

Open ulfjack opened this issue 10 years ago • 6 comments

We support fission on Linux, we should also support dsym on MacOS. I was hoping that we could use the same code path as fission, but it looks like it's a bit more tricky.

ulfjack avatar Jul 24 '15 09:07 ulfjack

Someone was working on this internally, but he doesn't seem to be on github, so I can't easily assign it to him.

ulfjack avatar Mar 02 '16 19:03 ulfjack

try adding --objc_generate_debug_symbols=true to your build options

dmaclach avatar Mar 24 '16 00:03 dmaclach

There is a flag --apple_generate_dsym -- since this flag exists, does it work, and if so, why is this issue still open?

RNabel avatar May 21 '18 14:05 RNabel

I believe this is for blaze dsym symbols.--apple_generate_dsym is for Apple builds using bazel, not for building bazel itself.

sergiocampama avatar May 21 '18 14:05 sergiocampama

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

sgowroji avatar Jan 20 '23 09:01 sgowroji

@sgowroji Can we reopen this issue please? this isn't anywhere near being fixed.

thesayyn avatar Jun 10 '25 21:06 thesayyn

I use the flag --apple_generate_dsym, but the dir xxx.dSYM generted by bazel is empty , why? If manully use cmd dsymutil path/to/target -o path/to/target.dSYM , it not empty, and it work for me

hugooole avatar Oct 29 '25 03:10 hugooole

make sure you're using the toolchain from apple_support instead of from rules_cc

I don't follow the purpose of this ticket, @thesayyn can you clarify the ask here?

keith avatar Oct 29 '25 04:10 keith

load("@rules_cc//cc:defs.bzl", "cc_test")

cc_test(
    name = "unittest",

@keith Thanks for your attention! Is there a method to generate dSYM files for cc_test not by manully run dsymutils xxx -o xxx?

hugooole avatar Oct 29 '25 06:10 hugooole

I get the flag --apple_generate_dsym work when I add bazel_dep(name = "apple_support", version = "1.24.3", repo_name = "build_bazel_apple_support") in my MODULE.bazel @keith THANK YOU VERY MUCH!!!

hugooole avatar Oct 29 '25 06:10 hugooole

yea that example should work with the latest bazel, generating dsyms for cc_binary was added very recently

keith avatar Oct 29 '25 15:10 keith