Cannot send Mac application through xcode4 - Invalid signature

I keep getting this error:

Invalid signature. This error occurs if you incorrectly signed the application. Two certificates are required for this process: a "third-party Mac application developer" certificate and a "third-party Mac Developer Installer" certificate. When signing your package, you need to make sure that you use the installer certificate to sign your package. Make sure you specify this certificate when sending the application through Xcode Organizer or when starting the product from the command line.

I googled, and followed the instructions, but to no avail.

I have:

Projects> Goals> Build> Code Signing> Third-Party Mac Developer Application:

Then, when I go to the archive and the Organizer opens, I go to send, I select the key "Third-party Mac Installer". But it still doesn't work :(

Do I need to do anything? How clean and then build first? (Build for what? Or just choose build?) Although I first tried almost all of them and then archived).

If this is relevant, I use MacRuby and had to do it first to configure it for xcode deployment: http://redwoodapp.posterous.com/macruby-and-xcode-4-build-a-self-contained-ma p>

Any help is appreciated - I pull my hair out here :(

+6
source share
3 answers

Think it's finally sorted - thanks to Daniel from the MacRuby mailing list. In fact, I created a ticket with Apple, but I hope they will not charge for it, now it will be fixed without them.

You can see the solution here: http://astonj.com/uncategorized/invalid-signature-error-on-submitting-app-to-the-mac-app-store/

+1
source

I have had the same issue lately. And this is a great chance to record and share your notes. :)

I assume that you are using Xcode and Organizer (do not download the application)

Step 1: check Keychain Access.app.

You should have two certificates (which you download from the mac dev center). Each of them must be associated with a private key. In the picture, I have only one certificate "nacho4 ..." associated with the private key "nac ...". So I have to go to the mac dev center and upload my certificates in order to continue. Download them and drag them into the "login".

I only have one certificate "nacho ..." linked with a private key "nac ...". Make sure you have two of these.

Step 2. Make sure you can create the application with the correct configuration.

In my case, I am setting up three configurations. Debugging: can be debugged + without a signature (for development) Release: cannot be debugged + no signature (mainly for internal beta versions, etc.) Distribution: cannot be debugged + signature (for distribution of the app store)

Go to "Assembly Information"> "Sign Assembly"> Make sure you sign the code with the correct icon. Something like: "A third-party application for Mac developers. My company Inc." * If you do not see this, then something is wrong with your certificates in Keychain Access.app. Verify that your certificate is associated with the private key enter image description here

Step 3 Make sure you have built the correct configuration.

(Yes, it’s obvious, but this was the last time it happened to me. It is for this reason that you may receive an “Invalid Signature”). In the "Edit Schema" panel, make sure that you have the correct configuration in the "Archive" section. In my case, this is "Distribution" (by default, "Release")

enter image description here

Please note that if you do not do this correctly, you can send your binary to Apple, but after a few minutes you will receive an “Invalid Signature”. Since the certificates are fine, but the application is not signed.

Step 4: Build the app and submit it

Xcode> Product> Archive enter image description here

The organizer will appear. Now just send it.

I found that checking the archive is useless, because sometimes even the verification fails, I can send my application without errors. I read this from other threads, so not only me. Therefore, if you are sure that this is the version you want to send to Apple. just click the submit button.

You are asked for your username and password. Then you get another menu to select the application (it has only one option, at least in my case), and then select the signature identifier that I think. It is important! Make sure a third-party Mac Developer Installer is selected and everything should work.

enter image description here

If you don’t see the option "Third-party Mac Developer Installer" in the last menu, then something is missing in your keychain. (Installer certificate from mac dev center)

Please note: if you don’t do it right, you can send your binary, but after a few minutes you will receive an “Invalid Signature” message from iTunes Connect, because the application may probably be well signed, but Apple certificates will be incorrect.

Hope this helps.

+7
source

Two other answers are good checklists, but that didn't work for me.

My problem was that I installed Xcode 3.2.6 on Lion (this still doesn't work, but this is another story). This ruined the productutil app.

To fix this: install BSD.pkg in the Packages folder of your Lion installer.

Thanks to Jacob Gorban for sharing his decision on the Apple Devs forums.

+5
source

Source: https://habr.com/ru/post/890317/


All Articles