OneSignal: Moving from p12 certificate to p8 certificate - ios

I'm a little bit confused. I saw that it's possible in OneSignal now to also use p8 certificates.
Now my short question is, do I have to update the mobile app that it's working with p8? Or do I only have to change the certificate in OneSignal and then everything is working?
In the OneSignal documentation they mentioned that if "Automatically manage signing" is on, I don't need to create a new Provisioning Profile. But they question is do I have to update the app?

You can simply swap from p12 to p8 in the OneSignal settings. No changes to your app are required and everything will continue as normal.

Related

Move to new Macbook - IOS App Push Notification and certificate

I need to amend an existing IOS project build by previous developer on my macbook.
The app is currently live in app store and using Apple Push Services Certificate (Production certificate)
So, in xcode, i want to run / amend / test the app using stimulator, but i got error, and need to configure the signing first.
I need to make sure while amending the app, the current app with push notification at app store still function as usual.
Apple developer account page
xcode signing & capabilities setting
if i tick the "Automatically manage signing" at xcode as shown picture above, and select the team account, will it affect or revoke or regenerate the current active Apple Push Services Certificate (production) at the apple developer account?
or can i use manual configuration, without using the "Automatically manage signing"?
Since i'm using another computer to run the app, currently i did not transfer any certificate from the old mac to new macbook, do i need to transfer certificate if using the "Automatically manage signing"?
Thanks in advance.
Here are the answers to your questions:
if i tick the "Automatically manage signing" at xcode as shown picture above, and select the team account, will it affect or revoke or regenerate the current active Apple Push Services Certificate (production) at the apple developer account?
Answer: No, it won't affect the current active certificates. It will just create new set of certificate and profiles for you. However, Avoid using automatic signing if possible.
can i use manual configuration, without using the "Automatically manage signing"?
Answer: Yes, Thats what #dmytro also suggesting you to do. I prefer to use manual configuration. For this, you need to export both the public & private key of the certificates from your previous Macbook as p12. You can install these p12 files in the keychain of your current Macbook then. Similary, you can download the already created provisioning profiles.
Since i'm using another computer to run the app, currently i did not transfer any certificate from the old mac to new macbook, do i need to transfer certificate if using the "Automatically manage signing"?
Answer: No, you don't need to transfer previous certificates if you are using automatic signing.
Please also note that, you may also create new certificates and profiles and that wont affect the already live build.

why every time i open xcode project it shows to revoke code signing certificate?

every time when i open xcode project for ios mobile app it show following message:
"Your account already has a signing certificate for this machine but it is not present in your keychain. To create a new one, you must first revoke the existing certificate."
and Every time create new certificate. it happnes after Developer account member ship is renewed.
please give me any solutions.
This is saying that you have a signing certificate already but you have to put that certificate in your keychain. So if you have that certificate stored anywhere then please put that certificate in your laptop keychain. Otherwise if you dont know where is your certificate stored then you have only one option. you have to revoke(delete) the certificate from appledeveloper.com and create a new one then store it in your device keychain.
If the above answer didnt help you, I think you might miss some Apple Intermediate Certificates in your keychain...
Go to the Apple PKI, install the missing ones in the Apple Intermediate Certificates section.
Let me know if it helped
I got the same issue on Xcode 14. I solved it without revoking. I did the following:
Xcode->Preferences->Accounts tab
Manage certificates button.
Click the "+" and add a cert. (I selected apple dev cert)
Restart Xcode.
Hope that works!

Apple developer you're certificate has been revoked

Ok so I have found these three answers: This one Revoked Certificate by Apple this one Your iOS Development certificate has been revoked? and this one Certificate has either expired or has been revoked and I get the same problem (A email from apple) every time that I use Xcode on one of the macOS devices that I have and then switch over and use Xcode on one of the other macOS device or vice-versa. and I think I know what's going on according to the answer at Your iOS Development certificate has been revoked? but is there any way that I can stop this from happening every time that I switch and use Xcode on the other device without needing to go through the process explained here? Certificate has either expired or has been revoked
If you are changing your mac, you have to create the .p12 file from certificate and install that .p12 onto new mac. Then there will be no problem regarding that certificate.
If you are familiar with how to create .p12 file from certificate.
Please check this link for certificate :-
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html
you should create your own developpement certificate in your account and add all test devices you use.
but if you change your mac you should move certificate to the other mac or just create a new certificate for this mac.

Error while uploading archive to iTunes Connect

'Your account already has a valid iOS distribution certificate'. I get this error every time I try to upload my archive. I don't have two dev accounts, nor did I use another mac before. Please help
This is a problem that appears after the updating to xCode 6. Just rename your provisioning profile in the developer portal, and then refresh the account info in xCode. Voila :-)
Your account already has a valid certificate
This dialog appears if the certificate already exists in Member Center.
Typically, this happens when you move from one Mac to another. If possible, export your certificates as a developer profile file on the other Mac, and then import them on your new Mac.
Have a look into Troubleshooting section of App Distribution Guide. It is described there how to solve this error.
I faced this error after Updating Xcode 6, to fix it
Revoke the IOS Distribution Certificate (from Member Centre ==> Certificates ==> Production).
Open Xcode project and re-login again to your account.
in the Account screen, click "View Details"
in the bottom left click the refresh button.
This will re-create the certificate automatically. and everything will work again.
In my case, the solution was to request a new dist cert, install it in my key chain, and also recreate the dist prov profile. Apparently, the cert I had in my keychain was old and was revoked and downloading the new cert from the dev center was not enough as it does not include private keys.

Transferring Apple dev account & certificate to new machine

I've recently attempted to transfer my apple dev certificate to a new mac, however, the provisioning profiles are appearing as valid signing identity not found.
I imported my developer account into Xcode5 and when I deploy a build, I get the option to fix the issue of not having a valid signing - this generates an iOS team provisioning profile for the bundle id.
So far have found this is fine for testing - we distribute ourselves not using the app store.
If anyone would be able to give me a heads up on whether this is an okay method, or whether I will need to generate a new certificate for distribution in case we do use the app store for distribution.
If you still have access to your previous computer, you can export as p12 the private key you used to generate the Apple certificate.
Go to keychain, select the iOS certificate and right click to export it. Then import it to your new computer and you do not need to generate new certificates.
what you need to do is to remake the developer and distribution certificates for your new mac and install it then, you update your provision profile with the new certificate, reinstall it and everything works
PS: for remake your developer and distribution certificates you have to go in the keychan
Certificate Assistant > Request a Certificate From a Certificate Authority..
then add your email and common Name, check Saved to disk. Finally Into the developer web site you remove your old certificates and create the new one with the new file that you have in the disk.
Did you export from Xcode → Preferences → Accounts like Apple's guide suggests?
Did you also export your private key from the keychain? I have seen this issue before, and that was resolved by exporting and importing the private key.
If you do want to distribute on App Store later on you will definitely need to import a valid certificate, yes.
here you can find a solution or ask your problem to a developers Apple support:
https://developer.apple.com/support/
Other way you can call the developer support center here:
https://developer.apple.com/contact/phone.php

Resources