Re-signing an app with Codesign

I’m developing a series of apps all related to a specific web service, with one app being created by another Corona developer. What we want to do is to have him supply the app compiled in Corona and for me to codesign it here so I can upload it using my distribution certificate.

What I’m doing is this, in terminal:
codesign -f -s “YOUR CERTIFICATE NAME” appname.app

The terminal confirms that this has worked and if I do:
codesign -dvvvv appname.app

I can see my distribution certificate there.

When I upload this using app loader, I get “Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate”

So, I created a “hello world” app, built it in Corona Simulator using the same distribution certificate and, as expected, it uploaded fine. However, when I ran the codesign line from above on this hello world app and tried to upload it, it failed with the same error message. Somehow, that line is breaking the app, even though Terminal reports it’s working fine.

To summarise - there is nothing wrong with my distribution certificate as, if I build using Corona it uploads fine. But if I run that codesign line, even though it’s the same certificate and codesign reports it’s worked, I cannot then upload without that error.

I can’t use Corona to build the app being supplied by the other developer because our agreement is that he controls the source code.

I’m tearing my hair out - does anyone have any ideas?

Kev [import]uid: 95579 topic_id: 25568 reply_id: 325568[/import]