How to strip debug info from Microsoft.iOS.dll and others? #115886
-
I am trying to strip any debug info from all the dlls built within my dotnet project. I found that by adding the There is some way to strip debug info also from the assemblies built within my project apart from the main one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@rolfbjarne would you know the answer? |
Beta Was this translation helpful? Give feedback.
-
The app bundle (in During the build process, pdb are used to create a dSYM bundle with native debug info that can be used to symbolicate crash reports, including managed frames. Removing pdb files from the build process will only result in poorer information in the dSYM bundle, which will lead to poorer symbolication of crash reports. |
Beta Was this translation helpful? Give feedback.
There's no built in way to do this.
It might be possible to change the binaries yourself, just before they're signed, maybe using a command-line tool like sed:
Note that it's very important to not remove or add any characters, only replace (with space in this case).
You could add it to the build by executing a target before the app is signed, by adding something like this to your csproj:
and then the script:
#!/bin/bash -e AppB…