Xcode shows the Apple Developer certificate, but the remote Mac still reports that no private key is available.
Fastest fix: A certificate alone cannot sign an app. First check whether the build user's keychain contains the matching private key; recover the complete signing identity if it exists elsewhere, or create a replacement under Apple's current rules if it cannot be recovered.
This guide is for developers who have moved an iOS build to a remote Mac and need to tell whether the missing item is a certificate, a private key, or a usable signing identity. It also covers independent publishers restoring Apple Development or distribution signing, and small teams requesting signing material from the identity's creator.
Check what Xcode is actually trying to sign
An error that mentions a missing certificate or private key does not, by itself, identify which component is absent. Start with the failing build task, target, and signing configuration. A project can have multiple targets, and the app target, extensions, and other bundled products may not all use the same signing settings.
A certificate is not the same thing as a complete signing identity. Apple's code-signing explanation describes the certificate as containing a public key; signing also requires the corresponding private key. The certificate and matching private key together form the identity used to sign code. See Apple's explanation of code-signing certificates and identities and its overview of Apple certificate types.
That distinction explains a common migration failure: the certificate appears in Xcode or Keychain Access, but the remote Mac cannot sign. The visible certificate can be present while its private key remains on the previous Mac or with the teammate who created it.
Before changing anything, record which target fails and which certificate type the project expects. Apple Development, distribution certificates, and cloud-managed certificates do not all follow the same handling process. Do not assume that an export or recovery method for one type applies to another.
Diagnose the keychain state before importing anything
A macOS Keychain can contain certificates, private keys, and other credentials. The location matters: a signing identity available to one user or keychain may not be available to the account or session that runs the build. Apple's TN3137 guidance on Mac keychains explains the keychain model and its behavior.
Use Keychain Access to inspect the relevant keychain while signed in as the account that runs the build. Find the expected certificate and expand its entry, if possible, to see whether a matching private key is associated with it. A certificate shown without a corresponding key is not proof that the complete identity is available.
For a command-line check, run this in the same user session as the build where practical:
security find-identity -v -p codesigning
An example of a result with no available identities is:
0 valid identities found
This output is a diagnostic example, not a universal explanation for every Xcode signing error. It reports identities visible to the command's current user and keychain context; it does not prove that a key is absent from every account or every keychain on the Mac. If a build runs through an automation process, check its actual user and session rather than relying only on what appears in an interactive desktop session.
| What the check shows | What it means | Next action |
|---|---|---|
| The expected certificate and its matching key appear together | The identity may be available in this keychain | Confirm the build user, selected identity, and target settings |
| The certificate appears, but no matching key is associated with it | The certificate may have been imported without its private key | Find the original identity or ask its creator to provide it |
| Neither the certificate nor the identity appears for the build user | The signing material may be missing or unavailable in this session | Check the source Mac, team process, and certificate type |
| A signing identity is listed, but Xcode still fails | The failure may concern a different target, profile, or selected identity | Compare the build error with the target's signing configuration |
Treat the command result as a clue, not a reason to change keychain trust settings blindly. If the certificate and key do not match, repeated imports will not repair the identity.
Recover the original identity when it still exists
If the remote Mac is a new build environment, check whether the previous Mac or the identity's creator still has the complete signing identity. Re-downloading a public certificate does not bring its private key with it. The recovery path depends on the certificate type and how the team manages signing.
For a manually managed team identity, ask its creator to follow Apple's instructions for sharing team signing certificates. Apple's documented process is the right reference for exporting and sharing supported identities; verify its current instructions for the certificate in question before transferring anything.
The exported signing identity and its password are sensitive. Use separate, access-controlled delivery channels for the file and password, and restrict access to the intended recipient. Do not include the password, private key, or identifiable credentials in a repository, build log, public ticket, or shared project notes. If the export's origin or contents are unclear, stop and confirm them with the identity's creator rather than importing an unknown file.
| Situation | Appropriate route | Important limitation |
|---|---|---|
| The original Mac still has the complete manually managed identity | Have its creator use Apple's supported sharing and export process | Protect the exported identity and password separately |
| A teammate created and still controls the identity | Ask that teammate to provide the matching identity through an approved team process | A public certificate by itself is insufficient |
| The certificate is cloud-managed | Follow the current cloud-managed certificate workflow | Do not assume a manually exported private key is available |
| No one can locate the matching private key | Assess whether a new identity can be created for the project | Replacing an identity may require related signing configuration changes |
Cloud-managed certificates have a distinct management path. Check Apple's current documentation for cloud-managed certificates before applying instructions intended for manually managed identities. If a certificate has been revoked or may need revocation, confirm the consequences and process in Apple's certificate revocation guidance; revoking a certificate is not a way to retrieve its private key.
Frequently asked recovery questions
Can the public certificate sign by itself?
No. The certificate alone is not the complete signing identity. The matching private key is required to create the signature. If the key is unavailable on the remote Mac, locate the original identity or follow Apple's current process for creating a new one. Installing the same public certificate again cannot recreate a private key that remains on another device.
What changes after moving the build to a new Mac?
The certificate may have been downloaded or synchronized without its matching private key, or the build may run under a different user from the one who imported the identity. Check the previous Mac first, then confirm the remote build user's keychain. For team-managed signing, coordinate with the identity's creator and use Apple's documented sharing method rather than copying credentials informally.
What should a team request from the identity's creator?
Request the complete signing identity through the approved process for its certificate type, not just a certificate file. Confirm that the creator can identify the target certificate and that the recipient is authorized to use it. Keep the exported file and its password separate, restrict access, and avoid placing either in source control or logs.
Why can Xcode still fail after a successful import?
An import can succeed while the build still uses another account, keychain, target, or signing selection. Confirm that the identity and matching key are available to the process that runs the build, then compare the selected certificate with the failing target. If the certificate and key do not match, stop re-importing and verify the source of the exported identity.
Stop and narrow the cause when the import does not work
If the imported identity is still not usable, check these points before attempting another transfer:
- Is the selected certificate the one required by the failing target?
- Does Keychain Access show a matching private key with that certificate?
- Is the identity in a keychain accessible to the user that runs the build?
- Does the build run as the same user who imported the identity?
- Is the project using manual signing, Xcode-managed signing, or a cloud-managed certificate process?
- Does the provisioning profile correspond to the certificate and app configuration being used?
A provisioning profile is a separate part of the signing setup, so a profile issue can surface alongside certificate confusion. When the identity is present but the build still fails, check the profile assigned to the failing target and consult Apple's instructions for editing, downloading, or deleting provisioning profiles. Do not treat profile changes as a fix for a missing private key.
If the certificate and private key do not match, or the export came from an unknown source, stop repeated imports and do not change trust settings to force the build through. Confirm the identity with its creator and use Apple's current process for the relevant certificate type.
Recreate an identity only after checking recovery options
If the original private key cannot be recovered, determine whether the project can move to a new signing identity under the team's current Apple account and release process. Development signing and distribution signing serve different project needs, and the correct replacement depends on the intended build and release path. Apple's identity creation documentation provides the official basis for creating an identity.
Before replacing anything, identify who has permission to create or manage the required certificate and whether the project relies on manual or managed signing. A new identity may require the team to review associated provisioning profiles and the signing selections used by each target. Use Apple's certificate-type guidance rather than assuming that all certificates can be recreated or distributed in the same way.
When the replacement is ready, test it with the actual project and the target that previously failed. Confirm which identity the build selected, inspect the resulting signing information, and verify that the next planned distribution or release step accepts the result. A successful test build confirms that particular configuration; it is not a guarantee that another target or release workflow will succeed without its own checks.
Verify the build environment before calling the issue fixed
Use this decision checklist to close the loop:
- [ ] Record the failing target and the certificate type it is configured to use.
- [ ] Check whether the certificate and matching private key appear together in the build user's keychain.
- [ ] If the key is missing, check the original Mac or contact the identity's creator before downloading or importing more certificates.
- [ ] Confirm whether the identity is manually managed or cloud-managed before choosing an export or recovery route.
- [ ] Transfer sensitive signing material only through the team's approved, access-controlled process.
- [ ] After import or replacement, run the affected project target under the same user and signing configuration used for the real build.
- [ ] Confirm the selected identity and check that the next intended release step is consistent with that signing setup.
For a new remote build environment, a repeatable acceptance process is more reliable than treating the first successful import as proof that every target is ready. The broader remote Mac environment guides can help evaluate the machine and access workflow separately from the signing identity. For related certificate lifecycle issues, see this guide to Developer ID certificate expiration on a remote Mac.
Choose the Mac setup that matches the signing workload
A local Mac keeps the hardware and signing workflow under direct physical control, but it ties builds to that machine's availability and maintenance. A borrowed or ad hoc build environment can also leave the team unsure which user, keychain, or signing identity the build uses. Neither approach removes the need to protect private signing material.
A remote Mac can provide a dedicated macOS build environment without requiring a separate machine purchase, but it still needs deliberate account access, keychain handling, and a verified signing process. Renting is worth considering when a project needs a remote Mac for a defined development or release workload; it is not a substitute for recovering the correct identity, and it may be a poor fit for teams that need direct physical access or expect a machine to serve as a stable, long-term heavy-use workstation.
Once the identity and build-user checks are complete, compare the available SudoMini remote Mac options with the team's current setup. The decision should rest on build access, control requirements, and how long macOS capacity is needed—not on an assumption that changing machines will fix a missing private key.
Frequently asked questions
Can an Apple Developer certificate sign an app without its private key?
No. A certificate alone does not give the Mac the private key needed to create a code signature. The certificate and its matching private key form the signing identity. Confirm that the identity is available to the user running the build; if the key is held elsewhere, recover the complete identity or follow Apple's current process for creating a replacement.
How do I restore an iOS development signing identity after changing Macs?
Check the original Mac or contact the person who created the identity. If the matching private key is still available, use Apple's supported team sharing process to export and transfer the identity securely, then import it into the build user's keychain. Downloading the public certificate again does not restore the private key.
How can a teammate provide the matching signing identity safely?
Ask the identity's creator to use the Apple-supported export process for that certificate type. Transfer the exported identity and its password through separate, access-controlled channels, and limit access to the intended recipient. Do not send passwords, private keys, or identifying credentials in a shared issue, chat, or build log.
What should I check when Xcode still says there is no private key after import?
Verify that the imported item is a complete identity, that it landed in a keychain accessible to the build user, and that the build runs in that user's session. Then compare the selected certificate and target with the error. If the key does not match, stop repeated imports and trust-setting changes; confirm the identity's source before trying again.
Run Your Signing Workflow on a Dedicated Mac
Rent a dedicated physical Mac mini from SudoMini and keep your signing environment separate from shared machines.
Rent a Cloud Mac