Skip to content

How to strip debug info from Microsoft.iOS.dll and others? #115886

Answered by rolfbjarne
rainbowcardiod asked this question in Q&A
Discussion options

You must be logged in to vote

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:

$ sed 's_/Users/myuser/              _g/' path/to/myapp.app/Microsoft.iOS.dll > tmp
$ mv tmp path/to/myapp.app/Microsoft.iOS.dll

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:

<Target Name="ErasePrivateInfo" BeforeTargets="BeforeCodesign" >
    <Exec Command="erase-private-info.sh $(AppBundleDir)" />
</Target>

and then the script:

#!/bin/bash -e

AppB…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rainbowcardiod
Comment options

@rolfbjarne
Comment options

Answer selected by rainbowcardiod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants