[Mono-osx] MonoMac / Build process and obfuscation
Jason Perkins
starkos at industriousone.com
Wed Nov 21 14:25:25 UTC 2012
It is possible to re-sign the code after the fact, using the codesign command line tool.
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/codesign.1.html
I do something similar to sign the third-party frameworks that get distributed with my app:
codesign -f -s 'Developer ID Application' "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Contents/Frameworks/Growl.framework/Versions/A"
(That's an example from Xcode, I haven't had to do this for a C# app yet.)
Hope that helps!
Jason
On Nov 20, 2012, at 2:32 PM, thenextman <rmarkiewicz at devolutions.net> wrote:
> I'm experimenting with obfuscation in MonoMac. We have a lot of existing
> business logic that we are reusing and would like it to be obfuscated (with
> the acknowledgement that a keen developer will still be able to deobfuscate
> and read the code)
>
> It seems like once I've compiled my project (into a .app), I can crack the
> package open and apply some obfuscation to the assemblies / exe inside
> without any problems.
>
> But presumably this is an issue, if my .app is signed?
>
> Is anyone obfuscating their MonoMac application? Does anyone have
> suggestions for how I can integrate this into our build?
>
> 1) I could obfuscate my assemblies in advance, then link the binaries to my
> MonoMac project and build that. Of course this is a pain, and it means any
> logic in my MonoMac .exe will not be obfuscated
> 2) Perhaps there is a way to 'delay' sign and package the Mac .app? So I
> could build as normal, obfuscate, then do that packaging and signing step?
> Does anyone have an insight into this?
> 3) Perhaps there is a way to integrate obfuscation into the build process
> directly? In Visual Studio, I could presumably create an MSBuild task and
> obfuscate my .NET code before the MonoMac signing / packaging step.
>
> If anyone had some insight that could help, I would be very grateful! Thank
> you in advance.
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-Build-process-and-obfuscation-tp4657475.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
More information about the Mono-osx
mailing list