开发者

Why do I get a code sign error when I publish my app on app store?

Yesterday I tried to publish my app but I got an error:

Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

This is my log:

warning: Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

Executable=/Users/IamMo/Library/Developer/Xcode/DerivedData/Jungle_Jumper-frylvnqvacnaoifljuswxrhwloju/Build/Products/Distribution-iphoneos/Jungle Jumper.app/Jungle Jumper codesign_wrapper-0.7.10: using Apple CA for profile evaluation Illegal entitlement key/value pair:

keychain-access-groups, {type = mutable-small, count = 1, values = ( 0 : {contents = "5ZT9U8689K.com.RainbowMouth.junglejump"} )} Illegal entitlement key/value pair: application-identifier, 5ZT9U8689K.com.RainbowMouth.junglejump AssertMacros:

filter_entitlements(entitlements_whitelist, entitlements_requested, allowable_entitlements), file: codesign_wrapper.c, line: 932 - (null)

开发者_如何学C


Your certificate must be a deployment certificate that is specifically designed for the App Store (so Ad-Hoc certificates won't work). You have to do these steps:

  1. Create the deployment certificate in the provisioning portal. This can only be done by the team agent for the development account.
  2. Download the deployment certificate to your machine (or use Xcode 4 to get the certificate). Be sure it is installed and shows up in the Xcode 4 organizer.
  3. Go under Build Settings and change the Code Signing options for the 'release' version to point to this certificate.

If you follow these steps, you shouldn't have a code-signing error (be sure to use the validator before submitting your application as well).


As I see in your log, add an Entitlements-File to your project. To do this, right click in the left sidebar and click create file. In the appearing view select Code Signing and select the Entitlement. Press save. Next add the name of your Entitlements-File including the suffix (.plist) under the Build Settings of your configuration. (Code Signing Entitlements)

The probably most important thing is to open the Entitlements.plist and change the bool value of the only entry to "NO". That's it.

If you still have any problems, check if you selected your Distribution profile under your Release-Configuration (or which you created). Then try to archive your application und Product -> Archive. And then submit it using the organizer, it's a more powerful method than the Application Loader.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜