fastlane match automatically manages certificates

1. Problems I encountered:

I usually rely on Jenkins to package and publish Dandelion, and send the message to the enterprise WeChat group for testing. The management of certificates is placed in a private repository. Whoever needs to use it can update the certificate from the private repository to the local area. The problem is that the certificate of the project I took over has expired and it cannot be automatically packaged and released.

2. The detours taken

  • 1. Manually export the certificate and upload it to the private library without encryption.
  • 2. Manually export the certificate and upload it to the private library without encryption.
  • 2. Environment error: Use the latest version of fastlane.

3. Correct steps:

Prepared file structure in private library:
certs.png
profiles.png

Taking the replacement of the development certificate as an example, first clean up the .cer file in the original certs/development, otherwise an error will be reported saying that the files in the warehouse do not match. Don't worry about the files in certs/profiles. They will be updated automatically after executing the command 'fastlane match development'.

1. Perform cleanup of certificates and configuration files. The development certificate and development configuration files under the developer account will be cleaned up, and the certificates in the private warehouse will also be deleted, as marked by the red box in the figure below
fastlane match unke development

Certificatescertificate.png

Profiles configuration file.png



2. Execute to generate certificates and configuration files. A development certificate and corresponding development configuration file will be automatically generated under the developer account, and will also be synchronized to the private warehouse.
fastlane match development

In the same way, you can configure the certificate for the development/adhoc/appstore environment: ``` fastlane match development fastlane match adhoc fastlane match appstore ``` The whole process is so simple, but I experienced dark moments for a few days. (When replacing a new certificate, don’t worry if you delete the online certificate, it will still work~)

Guess you like

Origin blog.csdn.net/biyuhuaping/article/details/129860353
Recommended