开发者

XCode 4, Invalid Signature (-19011)

I'm goin mad.

I'm using XCode 4 and finally i finished my app,and i was about to submit it to App Store,uploading to iTunes Connect. I tried to to Build for Archive but this warning showed up:

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

I've googled all day long,i've tried to renew all my certificates in Provisioning Center,i've even tried to upload it with Application loader but anything happened. Same error there too. I've tried to validate it through the Archive tab in Organizer but anything, this warning won't go away.

I've read some answers here, and even if the answers were a bit old, anything worked for me, i've tried to reinstall XCode too,i've tried to select the righ开发者_如何转开发t profile on Build in Targets..

Thanks to anyone who will help me

edit:

When i try to start a new project and select "Build for Archive" and then Archive, the warning appears but i can still share the archive as ipa. I tried to copy all the files from my old project into the new one, build for archive, archived. But when i select "Share" as .ipa it shows an error

The operation couldn't be completed. No such files or directory.

May this be 'cause i added 2 frameworks to my project to work? Should i select something from Target,or Project? Also,i want to say that all my profiles are ok, certificates etc. I've tried to bypass the error -19011 by turning on NO "Validate built product".

EDIT2: The -19011 doesn't show up anymore, but when i try to validate or submit,i got this error:

The archive is invalid. var/folders/*randomnumbers* app.ipa does not exist.

What am i supposed to do in this case? I've already read some of the answers but none worked.

XCode 4, Invalid Signature (-19011)


I solved, thanks to the help of an Apple Technic Engineer, this way:

In targets, on Build Settings - Product name, I had the name of the app with spaces and special characters (? character). After changing that and changing the Bundle Name too, I solved all the problems I got with that.

Hope this will help someone, one day.


You said you tried to "renew all my certificates in Provision Center". Are you certain you are:

  1. Using a valid certificate. Have you imported the private key into your keychain?

  2. Chosen the right provisioning profile + certificate combination for your "Release" or "Distribution" configuration?

It's possible that your Development configuration is correct, hence you could test on your device (if you have), but your Release configuration is wrong.

Go to "Build Settings" in XCode and verify that under "Release" or "Distribution", you chose your Distribution certificate (not development certificate) and the provisioning profile tied to it.

If that doesn't work, your problem is possibly related to this SO question. Try reinstalling?

Hope this helps.


Are you sure your distribution certificate is for the app store, and not for ad-hoc distribution?


From Product menu go to "Edit Schema", there find the Archive from the left sidebar and check which build configuration you are using for Archive. It should be distribution.

Another thing to check is which provision profile Distribution configuration is using, you can check this from projects Build Settings under Code Signing section.


After making sure my certificate and provisioning profile were correct for In-House deployment and making sure I didn't have any unwanted spaces or characters in the target names, what worked for me was to change my scheme from Debug to Release on the Run page. Product -> Scheme -> Edit Scheme -> Click Run -> Change Build Configuration to Release.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜