My iOS certificate is stored in GitHub and it is expired, the failure message in circleci progress is that 'Your certificate 'xxxxxxx.cer' is not valid, please check end date and renew it if necessary'.
Do I need to create a new certificate, or download an existing one? I don't remember how this was originally created, I thought it was done by Fastlane as part of the build.
But I don't know how to modify the Fastlane command, I have tried to add the 'cert', but it fails.
You can use fastlane match development
after deleting the development profiles and certificates from your git repo. Alternatively, you can delete everything from git repo and run fastlane match
If you do not care about existing profiles and certificates, just run fastlane match nuke development
and fastlane match nuke appstore
, then fastlane match development
and fastlane match appstore
. These commands will first delete everything from your git repo and apple developer portal and the next two commands will create everything on your apple developer portal and push them to your git repo.
Read up this
I renewed expired certificate by deleting it from the Git repository and then running fastlane match
. If you append --force
it will also renew the profiles to use the new certificate.
Steps:
fastlane match development --force
to renew certificate and profiles. (Replace development
with appstore
or adhoc
depending on your certificate type. Before start ensure you got certificates repo in github
https://docs.fastlane.tools/actions/match/
Clearing old certificates
fastlane match nuke development
fastlane match nuke distribution
After clearing, we need to re-create new certificates
fastlane match development
fastlane match appstore
and restart your Xcode
我发现最简单的方法是删除 Develop 门户上的 expire .cer 并再次运行match
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.