iOS Auto-publish known issues

See below what is the signification of each error message you can encounter :

Invalid username and password combination.

This message appears when you use a bad login/password to publish your application on the Apple Store.
Verify that the credentials used are the same that you use to connect to your account on https://itunesconnect.apple.com/

Could not upload binary to iTunes Connect. This application version number is probably already used.

This message appears when you try to publish an application that exists on the Apple Store with the same version number.
If you want to publish an update of your application you need to publish a new version of your application.

undefined method `strip' for nil:NilClass

That means your Apple developer account is protected with Two-step verification.

To disable the Two-step verification, follow these steps:

– go to https://appleid.apple.com and log in
– in Security, click on Edit
– for Two-Step Verification click on “Turn-Off Two-Step Verification” and follow the steps.

The app name you entered is already being used. If you have trademark rights to this name and would like it released for your use, submit a claim.

You try to publish an application that already exists in the App Store with the same name.
So verify on the concerned Store if there is another application with the same name, if that is the case, you might need to change the name of your application before to try to publish again.

The version number has been previously used.

You try to publish an application that already exist in the store with the same version number.
If you want to publish an update of your app, you will have to change the version number for a higher one before compiling your application. Then try again to publish your application.

You must provide a company name to use on the App Store.

When you publish for the first time, Apple asks you to add a company name when adding your first application in your account at http://itunesconnect.apple.com. After having this message from the Auto-publish system, go at http://itunesconnect.apple.com, go in “My Apps”, and click on the “+” to add a new app. Enter the name of your company, then the name of the application that you want to publish, choose the bundle ID of your application in the choice list, enter a SKU (the name of your app with no space and in lowercase) and save. Then use the iOS Auto-publish system again.

Your account is in no teams.

This error means that the Apple ID provided is not part of a team in Apple Developer Portal.
Here are the solutions depending on the cases:
– If you publish apps on your account, You have to enroll to the Apple Developer Program
– If you publish apps on the account of someone else, he must add your Apple ID to his Apple Developer Team

The 'Apple Developer Program License Agreement' has been updated.

If you get this error message, you have to connect to your Apple developer account at https://developer.apple.com/account and accept the updated license agreement.

Could not create another Distribution certificate, reached the maximum number of available Distribution certificates.

Actually that is because you can only have 3 iOS distribution certificates, and during the process of auto-publication it creates a new distribution certificate that will be used for all your publications through the iOS auto-publish.
That means that you have to delete the old distribution certificates so that it doesn’t reach the limit. But do not worry, deleting a Distribution certificate does not affect the apps already published.

If you delete an iOS distribution certificate that has been used to create a provisioning profile, the provisioning profile will be invalid, but it does not affect the app itself, just to the provisioning profile that has been used to compile the app.

You can delete an old distribution certificate from here: https://developer.apple.com/account/ios/certificate/distribution

Error! You already have 2 active push profiles for this application/environment. You'll need to revoke an old certificate to make room for a new one.

As it explain in the error message, you need to delete an old certificate because you have currently 2 certificates for push notifications.

Indeed, during the IOS Auto publish process, all certificates are created automatically for you. Especially the .pem certificate, for the iOS push notifications, is created and sent directly to your backoffice. So if you have already created a push certificate in your iTunes Connect Account before using the IOS Auto publish, the IOS auto publish create a new push certificate, that’s why you obtain this error message.

In order to resolve this issue connect to your backoffice, go in Manage > Application and select the concerned application. In the application page, you can find a section called “Certificate”. In this section you will find information about the current push certificate used. Note the bundle ID on which is attached the certificate:

Then connect to your Apple developer account at this address: https://developer.apple.com/account/ios/certificate/

Once you are connected, on the left part of your screen click on “All” to see all your certificates. It will display on the right part of your screen the list of all your certificates.

In the list of all your certificates, you need to revoke all “apple push services” certificates which have the same name as the bundle ID noted previously.

After following all these steps you can try again to publish your application with the IOS Auto publish.

 

Was this article helpful?

Related Articles