With fastlane match how to create iOS provisioning profiles with certificate created by another user?

  Kiến thức lập trình

I use fastlane to mangage code signing for iOS.
The certificate created by me was expired, but I can not create new certificate because Apple does not create more than a specific number.

[!] Could not create another Distribution certificate, reached the maximum number of available Distribution certificates.

I tried bundle exec fastlane match nuke distribution but because certificate was expired it was not selectable to be nuked.
I manually deleted provisioning profiles from git repo and Apple developer console.

I was provided cer and p12 files from another user, and I succeed import cer and p12 into git repo with instruction from Manually manage the fastlane match Repo. I think I could create iOS provisioning profiles from cer and p12 files, but when I run bundle exec fastlane match appstore I got error say that I can not use cer that was not created by me.

Certificate 'apple_distribution' (stored in your storage) is not available on the Developer Portal for the user [email protected]
Make sure to use the same user and team every time you run 'match' for this Git repository.
This might be caused by revoking the certificate on the Dev Portal
If missing certificate is a Developer ID Installer, you may need to auth with Apple ID instead of App Store API Key

[!] To reset the certificates of your Apple account, you can use the `fastlane match nuke` feature, more information on https://docs.fastlane.tools/actions/match/

So my questtion is: how to use fastlane match to create iOS provisioning profiles with certificate that was created by another user?

Thanks!

LEAVE A COMMENT