For Bitrise, the process is quite simple. Just follow their documentation to add certificates and profiles directly via the Bitrise UI.
To use manual code signing in Codemagic, you’ll need the following:
- 🔐 Signing Certificate: Your development or distribution certificate in
.P12format. - 🔑 Certificate Password: If your certificate is password-protected, provide the password.
- 📄 Provisioning Profile: Export it from Certificates, Identifiers & Profiles under the "Profiles" section and download it.
- Open your app in Codemagic.
- Navigate to the Environment Variables section.
- Add the required environment variables with their corresponding values.
- Create a group and name it default.
.p12 certificates and provisioning profiles) must be base64 encoded before being saved as environment variables. They are then decoded during the build process.
cat your_file_name.extension | base64 | pbcopy| 🏷️ Variable Name | 📥 Value Description | 📂 Group |
|---|---|---|
| CM_CERTIFICATE_WORKFLOWNAME | Signing certificate in base64 | default |
| CM_CERTIFICATE_PASSWORD_WORKFLOWNAME | Certificate password (if any) | default |
| CM_PROVISIONING_PROFILE_WORKFLOWNAME | Provisioning profile in base64 | default |
Consider two workflows: KAWAII and SENSEI. In this case:
- KAWAII uses a password-protected certificate.
- SENSEI does not require a password.
Here’s the list of variables to create:
| 🏷️ Variable Name | 📥 Value (base64-encoded) | 📂 Group |
|---|---|---|
| CM_CERTIFICATE_KAWAII | MIK06AYJKoZI... | default |
| CM_CERTIFICATE_PASSWORD_KAWAII | password | default |
| CM_PROVISIONING_PROFILE_KAWAII | MIIMNwIBAzCCC... | default |
| ---------------------------------------- | ------------------------------------- | ------------ |
| CM_CERTIFICATE_SENSEI | MIK06AYJKoZI... | default |
| CM_PROVISIONING_PROFILE_SENSEI | MIIMNwIBAzCCC... | default |
🎉 By following these steps, you’ll have your iOS certificates and profiles configured and ready for use in Codemagic!