skip to Main Content

I want to distribute app, but I received the error. I don’t know the cause.

I use Xcode Version 13.0 (13A233)

An error was Encountered:

 Error Analyzing App Version (Build number request failed with error: BuildsService: ResponseErrors (1): Error status: 403, code: FORBIDDEN_ERROR, title: 'This request is forbidden for security reasons', detail: 'The API key in use does not allow this request', id: 65cc1b85-e0d4-4f86-8bab-e72d7149c9cc)

enter image description here

19

Answers


  1. I fixed this issue by removing every Apple ID in Xcode except the one that has the developer role in App Store Connect for the app I was trying to validate / distribute. I assume Xcode was trying to use the wrong account at some point in the process.

    Login or Signup to reply.
  2. I was able to fix this by adding a key to Info.plist: Bundle version string (short), set to $(MARKETING_VERSION).

    Login or Signup to reply.
  3. I got "Error Analyzing App Version" without any additional details. I just deleted the archive and create it again and it worked.

    Login or Signup to reply.
  4. i just give the version number a bump, from .42 to .43,

    then it all fine.
    still not sure the root cause of the problem.

    Login or Signup to reply.
  5. I was able to resolve it by attempting to submit an older uploaded version and then canceling as soon as that step was completed. Then I tried to upload the new version again, surprisingly it passed that check ✅. If the process fails then try to restart the mac.

    Login or Signup to reply.
  6. Another solution is to recreate the App Store distribution certificate and then it will work.

    Login or Signup to reply.
  7. Today I’ve faced the same problem. I tried to remove all previous versions. Then after a while I archived new version and this step successfully passed. It seems that was a problem on Apple side.
    Problem at apple dev forum

    Don’t try to remove certificates and etc. It would bring more problems.

    Login or Signup to reply.
  8. Might be temporary Apple outage. See:
    https://developer.apple.com/forums/thread/705599

    Here’s a workaround:

    1. Organizer -> Distribute App -> App Store Connect -> Export -> NOW DISABLE WIFI / INTERNET (else will fail) -> Exported .ipa

    2. Now use Transporter App -> Login to same account -> Add .ipa -> Upload works !

    Transporter can be downloaded here:
    https://apps.apple.com/app/transporter/id1450874784

    Login or Signup to reply.
  9. I am also facing the same issue from last few hours, it seemed like this issue is arising form Apple side, so doing any changes with certificates or bundle id etc may make it worst to get resolved, thought to wait if Apple respond on this thread

    Solved it through Changing the app version from 1.0.0 to 1.0 on Xcode. still this is not guaranteed solution cause its not working on the other Mac.

    Login or Signup to reply.
  10. Someone posted the following workaround on Apple’s Developer Forums:

    WORKING BYPASS: While Apple’s Hardcore Software engineers drink coffee and figure this bug out!
    Organizer -> Distribute App -> App Store Connect -> Export -> NOW DISABLE WIFI / INTERNET (else will fail) -> Exported .ipa
    Now use Transporter App -> Login to same account -> Add .ipa -> Upload works !
    Transporter Can be downloaded from AppStore

    I managed to upload my app to TestFlight this way.

    See https://developer.apple.com/forums/thread/705599?answerId=712953022#712953022

    Login or Signup to reply.
  11. Just go to xcode preferences->accounts->Download manual profiles and try uploading again it works for me.

    Login or Signup to reply.
  12. I had the same message without any description error message like below. I was trying to upload the build to Testflight and encountered this issue.

    enter image description here

    My solution is only to do with the versioning of the XCode. As I was using new Version number with a random Build number. For example Version I set as 1.2.0 and Build 17, even though I haven’t uploaded Build 1 for Version 1.2.0.

    After setting up Version 1.2 and Build 1, everything worked.

    Login or Signup to reply.
  13. In Flutter, I solved it by changing the $(MARKETING_VERSION) to $(FLUTTER_BUILD_NAME) for CFBundleShortVersionString key in the Info.plist file

    <key>CFBundleShortVersionString</key>
    <string>$(FLUTTER_BUILD_NAME)</string>
    
    Login or Signup to reply.
  14. Don’t need to do anything special. As strange as it sounds, the error does not occur if you upload during the first few minutes after the top of each hour.

    Login or Signup to reply.
  15. I just had this and fixed it by signing out of Apple in XCode and then signing back in.

    XCode > Preferences > Accounts > Minus (-) button at the bottom left, then plus (+) button and signed back in. Took 15secs once I tried it.

    Login or Signup to reply.
  16. I encounter this issue suddently. I had uploaded a binary with build 0 yesterday. Then try to upload a binary with build 2 and meet ‘Error Analyzing App Version’.

    Instead of upload directly, I export the binary and upload it with ‘Transporter’ app and everything works. So strange.

    Login or Signup to reply.
  17. I changed my Apple id password and got this error.
    I checked Xcode -> Preference -> Accounts and noticed that session has expired.
    I re-logged in and got the same error again.
    And I just restarted my Mac and it worked.

    Login or Signup to reply.
  18. In my case my apple certificate in my keychain was expired so after creating new certificate and deleting previous certificate it worked for me.

    Login or Signup to reply.
  19. enter image description here

    Go to Runner :
    Then Go to Signing & capabilities:

    Check All – Debug – Release – Profile

    Team , Bundle Identifier and others information are same or Not . if not same kindly fix it . Mainly this is causing the Error.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search