You get an Incorrect Two Factor Code Error while submitting an iOS app or rebuilding/renewing the Push Notification Certificate. This article explains why this Apple Code error happens and how you can work around it by getting a new code.
Upon submitting/publishing an iOS App or updating the Push Notification Certificate (push publishing), this message appears:
Incorrect Two Factor Code
(The screenshot comes from an attempt to rebuild the Push Note Certificate)
This happens when a client enters a verification code that cannot authenticate him/her.
Note: When you first try to log in, a verification code is sent, but it can only be used to log in to the account (and not for publishing the app). The system has to resend the authentication code to be used for publishing.
- The Apple ID must have an Apple device associated and - if not possible - it must have at least two trusted phone numbers. (When you first try to log in, a verification code is sent, but it can only be used to log in to the account and not for publishing the app. The system has to resend the authentication code to be used for publishing)
(Applicable if you are publishing on behalf of a client) You need to add your phone number as a Trusted Phone Number to the client's account at the Apple ID site.
You need to work around the non-authenticating 2FA (Two-Factor Authentication) code by getting a new authentication code again.
1. (Applicable if you are publishing on behalf of a client): Add your number to the trusted numbers.
2. Open a new private/incognito window on your web browser and relog into the Apple Developer account.
Note: Each browser has its own terminology. Incognito is a term used by Google for the Chrome browser
3. Once the first verification code is received as part of the login process, DO NOT enter this code.
4. Click on Didn't get a verification code?
5. Select the Use Phone Number option from the pop-up menu.
6. Copy the code you receive on the phone and paste it in the corresponding field on the CMS side.
This error message will disappear and you will be able to continue with publishing your iOS App or rebuilding your Push Notification Certificate.