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)
19
Answers
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.
I was able to fix this by adding a key to Info.plist:
Bundle version string (short)
, set to$(MARKETING_VERSION)
.I got "Error Analyzing App Version" without any additional details. I just deleted the archive and create it again and it worked.
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.
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.
Another solution is to recreate the App Store distribution certificate and then it will work.
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.
Might be temporary Apple outage. See:
https://developer.apple.com/forums/thread/705599
Here’s a workaround:
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 here:
https://apps.apple.com/app/transporter/id1450874784
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.
Someone posted the following workaround on Apple’s Developer Forums:
I managed to upload my app to TestFlight this way.
See https://developer.apple.com/forums/thread/705599?answerId=712953022#712953022
Just go to xcode preferences->accounts->Download manual profiles and try uploading again it works for me.
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.
My solution is only to do with the versioning of the XCode. As I was using new
Version
number with a randomBuild
number. For exampleVersion
I set as 1.2.0 andBuild
17, even though I haven’t uploadedBuild
1 forVersion
1.2.0.After setting up
Version
1.2 andBuild
1, everything worked.In Flutter, I solved it by changing the
$(MARKETING_VERSION)
to$(FLUTTER_BUILD_NAME)
forCFBundleShortVersionString
key in theInfo.plist
fileDon’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.
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.
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.
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.
In my case my apple certificate in my keychain was expired so after creating new certificate and deleting previous certificate it worked for me.
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.