google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.71k stars 340 forks source link

Missing debug info while looking into ios ipa's unix exec file #288

Closed gouravsinghal92 closed 2 years ago

gouravsinghal92 commented 2 years ago

I have an ipa with me. Made it .zip and extracted he contents out of it. it has one exec file. I copied that file in a separate folder and then I want to see the file contents of it.

I used "bloaty PSExpress".. It told me the size of components with _text etc symbols. But when I am using -d compileunits it is saying "missing debug info."..

What can I do to resolve it? Please guide.

Thanks in advance.

Regards.

haberman commented 2 years ago

The -d compileunits data source requires that debug info is available. You must compile with debugging info enabled -g or similar). There is some info here: https://github.com/google/bloaty/blob/master/doc/using.md#debugging-stripped-binaries