MacRuby/MacRuby — pull request #52 by danielwestendorf (2012-01-31 17:25:02+00:00)
Title: Codesign fix

As it stands, macruby_deploy modifies the app bundle, nullifying any code signing that takes place in Xcode. This causes the app to be rejected when submitted to the MAS review process, and endless hours of confusing and troubleshooting trying to fix it. The solution is to manually enter the bundle and run the codesign utility on all the modified files and the app bundle.

I've added a --codesign switch to the script that accepts the name of your third party certificate to re-sign all the changed files. An example would be

```--codesign "3rd Party Mac Developer Application: Daniel Westendorf"
```

This finds all the .bundle, .rbo, .rb, .framework, and .dylib files and signs them, then signs the entire bundle. I've tested this on a real MAS app submission, and it returned no errors.