Overview
You got an Incorrect Two Factor Code (2FA) Error while submitting an iOS app or rebuilding/renewing the Push Notification Certificate. This article explains why this Apple 2FA wrong code error occurs and how you can work around it by getting a new code.
Diagnosis
While going through the publishing process for an iOS App or updating the Push Notification Certificate (push publishing), you got this message:
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.
Important: It has been observed that if you have only one trusted phone number and no device associated with your account, you may get this error even if the code is correct
Prerequisites
- 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.
Solution
You need to work around the non-authenticating 2FA (Two-Factor Authentication) code by getting a new authentication code again.
1. (if not done already) Open a new private/incognito window on your web browser and relog into the Apple Developer account and then Add your number to the trusted numbers.
Note: Each browser has its own terminology. Incognito is a term used by Google for the Chrome browser
2. Log in to the CMS platform
3. Navigate to Apps menu and select Edit-> Info. In the Push tab (where you got the error message)
a. Type your email address and Apple password and click Log In.
b. Select your phone number, click on Send SMS and then enter the code you received on your phone and then click on Submit Code.
c. Select your Apple Team
d. Click Submit at the bottom of this window
Testing
This error message will disappear and you will be able to continue with publishing your iOS App or rebuilding your Push Notification Certificate.
Comments
0 comments
Please sign in to leave a comment.