This is the key issue:
a sealed resource is missing or invalid
You will see that error when using ApplicationLoader while looking at Console.app.Here is the full message:I finally found out that the issue was some strangely named files in the FBConnect.bundle .
7/2/09 1:26:31 PM ApplicationLoader[1037] *** Codesign error (please ignore invalid option comments): got requirements(0x805a00, 556)
Executable=/var/folders/fC/fCYkmIs5EtextlqOt9Oo9E+++TQ/-Tmp-/YourApp.app.zip/YourApp.app/YourApp
Identifier=com.yourcompany.app
Format=bundle with Mach-O thin (armv6)
CodeDirectory v=20001 size=10131 flags=0x0(none) hashes=498+5 location=embedded
Signature size=4331
Authority=iPhone Distribution: Your Company Inc.
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Jul 2, 2009 1:25:44 PM
Info.plist entries=20
Sealed Resources rules=3 files=86
Internal requirements count=0 size=12
Executable=/var/folders/fC/fCYkmIs5EtextlqOt9Oo9E+++TQ/-Tmp-/iGotchaLite.app.zip/iGotchaLite.app/iGotchaLite
got entitlements(0x805e00, 323)
codesign_wrapper-0.7.3: using Apple CA for profile evaluation
codesign_wrapper-0.7.3: Caling codesign with the following args:
codesign_wrapper-0.7.3: /usr/bin/codesign
codesign_wrapper-0.7.3: --verify
codesign_wrapper-0.7.3: -vvvv
codesign_wrapper-0.7.3: -R=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and certificate leaf[field.1.2.840.113635.100.6.1.4] exists
codesign_wrapper-0.7.3: --entitlements
codesign_wrapper-0.7.3: /var/tmp/signingbox/codesign_wrapper_entitlements.plist
codesign_wrapper-0.7.3: /var/folders/fC/fCYkmIs5EtextlqOt9Oo9E+++TQ/-Tmp-/YourApp.app.zip/YourApp.app
/var/folders/fC/fCYkmIs5EtextlqOt9Oo9E+++TQ/-Tmp-/YourApp.app.zip/YourApp.app: a sealed resource is missing or invalid
codesign_wrapper-0.7.3: failed to execute codesign(1)
The solution is to remove files that start with "._".
Here is the blog post that finally saved me from my mental breakdown.
A solution to: Application failed codesign verification
Thanks Ev.