[Mono-osx] Code signing monomac bundle

Maurício Linhares mauricio.linhares at gmail.com
Sun Dec 2 05:36:01 UTC 2012


Hi Johan,

You need to provide a resource rules file to the codesign call when
signing an application. It would be something like this -
https://gist.github.com/4187117 - you can really just use this file.

And then you can do the signing call like this:

/usr/bin/codesign --force --sign  "Identity Here" --resource-rules
ResourceRules.plist MyApplication.app

-
Maurício Linhares
http://techbot.me/ - http://twitter.com/#!/mauriciojr


On Sat, Dec 1, 2012 at 2:52 PM, Johan Hammar <johanhmr at gmail.com> wrote:
> I am trying to code sign my Monomac application for distribution OUTSIDE the
> Mac App Store.
> Since I'm copying a couple of frameworks (CorePlot and Sparkle) into the
> bundle directory during the "After Build" event and I probably need to
> include those frameworks when signing I assume I must also sign the bundle
> from the "After Build" event instead of checking the "Sign the application
> bundle" under Mac OS X Packaging. I have created all the cerficates from
> XCode (including a Developer ID certificate which seems to be required for
> distribution outside the App Store)
>
> However after I have build my bundle and then issue the following command:
>
> codesign -f -s "Developer ID Application: My Company Name" MyApplication.app
>
> I get the following error:
> MyApplication.app: invalid resource specification rule(s)
>
> Anyone knows what's the problem?
>
> /Johan
>
> _______________________________________________
> 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