Để gia hạn Distribution Certificate (chứng chỉ phân phối App Store) trên Mac, thực hiện theo các bước sau:
- Mở Keychain Access (Spotlight search "Keychain Access").
- Menu Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
- Điền thông tin: Email, Common Name (tên của bạn/doanh nghiệp), chọn Saved to disk.
- Chọn vị trí lưu, sẽ tạo file
.certSigningRequest(CSR). - Đăng nhập developer.apple.com > Certificates, Identifiers & Profiles.
- Chọn Certificates > Production > nút +.
- Chọn App Store and Ad Hoc (Production) > Continue.
- Upload file CSR vừa tạo > Generate.
- Tải certificate
.cervề, double-click để cài vào Keychain.
Lưu ý quan trọng
- Certificate Production (App Store) có hiệu lực 1 năm. Nên gia hạn trước khi hết hạn 1-2 tuần.
- Sau khi gia hạn, cần tạo lại Provisioning Profile (Distribution) chứa certificate mới.
- Xcode > Preferences > Accounts > Manage Certificates > Download Manual Profiles để cập nhật.
- Nếu dùng Fastlane/CI, nhớ cập nhật certificate trong keychain của máy build.
Mẹo: Dùng fastlane match hoặc fastlane cert để tự động hóa quy trình này trong CI/CD.