XCode 4, Invalid Signature (-19011)

帅比萌擦擦* 提交于 2020-01-01 15:03:09

问题


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 right 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.


回答1:


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.




回答2:


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.




回答3:


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




回答4:


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.




回答5:


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.



来源:https://stackoverflow.com/questions/6479257/xcode-4-invalid-signature-19011

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!