Android Upload and build .ipa failed, Cause of SHA certificate


#1

Hey Admin,

i have deleted my previous account (biplov1401) because of this i am not able to build .ipa And upload .apk on play store .
so can you tell me what is the solution of this problem ?
Or
is it possible to get back my previous accopunt with same email and user name ?


Can't build apk with exp build:android -c
#2

Hey @biplov14,

We’ll have to look up look in our DB backups for your Android Keystore which will take a little bit. One of us will reach out when we have it. As for iOS, clearing your credentials via expo build:ios -c should get you back in business.

Cheers,

Adam


#3

Hey @biplov14 - could you let us know how long ago you deleted your account, and when the last time was that you made a successful build on the previous account? This will be important in order to find the right backup date. Thanks!


#4

I had created my last build on 15 oct 2018 and after that I deleted my account (biplov1401).
Need to update my app , so can you restore my old account ? If no what are the possible solutions to update my app , please suggest .


#5

Hey
@adamjnav,
@esamelson,
please reply as soon as possible ?
After expo build:ios -c
Error occured :-

Thanks in advance.


#6

Revoke your existing certificates on apple developer site.


#7

i have only one existing certificate in distribution Which is Live on App sore of my App.
And in All certificate One is ios distribution and one is type of Apple push Service.
@jakubste
Please help ?


#8

expo build:android -c
Apk is generated but from new account it is not uploading on play store.
Error :-

Upload failed
You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s):
[ SHA1: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
[ SHA1: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

need help ?


#9

You can’t change the keystore once you uploaded an app to Google Play.

What you should have done was creating a backup of a keystore before deleting your old account (expo is storing a keystore for you). When you deleted an account we deleted the credentials with it.

@esamelson offered restoring your keystore from backup - please give him time to wake up - it’s still early in California.


#10

wow,
@jakubste sir.
thanku.
i can loose my job if u dont help me beacuse need to update my App from 20 october.


#11

@biplov14 - I’ve replied to your email.

For anyone else coming across this post, please note that we will not always have the ability or bandwidth to retrieve old backed up data. We do not recommend you delete your account if you have any apps in production, and if you do, you do so at your own risk. It is your responsibility to back up any data you need before doing so, as @jakubste said.


#12

@esamelson sir.
Done for android.
Thanku so much.

sure next time it shouldn’t happened.
And Sir What about My .Ipa ?

Thanku.


#13

@biplov14 - did you try @jakubste 's suggestion of revoking your existing certificates?


#14

Yes
@esamelson sir ,After that Above issue occured ?


#15

@biplov14 - the error here, “Maximum number of certificates generated” is coming straight from Apple. You probably have some more old certificates on your account that you still need to delete. See more discussion/suggestions about this issue here: How to fix ‘build:ios’ error - you already have a current ios distribution certificate


#16

i have only one existing certificate in distribution Which is Live on App sore of my App.
And in All certificate One is ios distribution and one is type of Apple push Service.
Nothing for delete.

@esamelson sir ,

Ihave followed this link
[How to fix 'build:ios' error - you already have a current ios distribution certificate]

Command :- expo build:ios -c

 Error : ? Will you provide your own Distribution Certificate? Let Expo handle the process
? Will you provide your own Push Certificate? Let Expo handle the process
[01:39:36] Error while gathering & validating credentials
[01:39:36] Reason:Unexpected response, raw:{"responseId":"3e4aef5e-4766-4b83-9f33-3d8115fee1f3","resultCode":7460,"resultString":"Ma
ximum number of certificates generated","userString":"You already have a current iOS Distribution certificate or a pending certificate request.","creationTimestamp":"XXXXXXXXXX","protocolVersion":"XXXXle":"en_US","requestUrl":"https://developer.apple.com/services-account/XXXXXX/account/ios/certificate/submitCXXertificateRequest.action","httpCode":200}
[01:39:36] Set EXPO_DEBUG=true in your env to view the stack trace

Command :- expo build:ios --revoke-apple-dist-certs --revoke-apple-push-certs -c

but it gives me this

[00:42:37] ATTENTION: Revoking your Apple Distribution Certificates is permanent
? Which Certs to revoke? (Press <space> to select, <a> to toggle all, <i> to invert selection)
<Spaceship::Portal::Certificate::Production id="XXXXXXX" name="iOS Distribution" status="Issued" created=2018-10-04 22:19:10 U
TC expires=2019-10-04 22:09:10 UTC owner_type="team" owner_name="XXXXX XXXXXX XXXXXX XXXX" owner_id="XXXXXXXXX" type_display_id=
"XXXXXXXX" can_download=true>

Can i do this ?
it affect my app which is on app store or not ?
reply please ?


#17

@biplov14 - yes, as we’ve already said, you need to revoke those existing certificates. You may also need to revoke the provisioning profile for this app on your apple account. After doing so, run expo build:ios -c to have expo automatically create new certificates.

Push notifications on your production app will not work in between deleting the certificate and running expo build:ios -c but should be unaffected after new credentials are created. Your app on the App Store should be otherwise unaffected.


#18

@esamelson sir ,
really
No words are enough to compliment Your Help.
thanku 100 times.
Step 1 :- created apk and uploaded which is mailed by you.
Step 2 :- go to Apple developer console.
Step 3 :- Delete All Certificate,no matter what it is.
Step 4 :- expo build:ios
Step 5 :- Done .ipa file.

For Step 3 References Here :-
Ref 1 :-
https://stackoverflow.com/questions/6320255/if-i-revoke-an-existing-distribution-certificate-will-it-mess-up-anything-with

Ref 2 :-
https://stackoverflow.com/questions/3263761/will-revoking-distribution-certificate-affect-application-which-is-in-review-on

Now Finally Done Everything.
Thanks to @Expo
and @jakubste too.


Error while gathering & validating credentials. Reason:No cert available to make provision profile against, raw:"Make sure you were able to make a certificate prior to this step"
How to changed metro bundler account if accuont has been changed.
#19

@biplov14 glad you figured it out! Thanks for posting your steps here for other people to find in the future. :+1:


#20

Hey, would it be possible to extend the Expo docs with the importance of, the Expo account and Android key, backups?

I didn’t know about that problem and would like to make a backup.
If it is already in the docs, can you please post the link?

Thanks.