Error: codesign ident not present in find-identity (in-house app)

I’m getting a build error for our in-house app that I can’t seem to solve. The error occurs the “Building and Signing IPA” stage, and appears to have to do with some kind of mismatch between certs and profiles. I don’t want to have expo create the certs for me (or revoke the existing certs on our apple dev account), so I have downloaded and provided them to expo myself. The distribution cert, the push key, and the provisioning profile are all fresh as of a day or two, and I’m kind of stumped as to where to dig further to get past this error. Any suggestions?

Error log

building and signing IPA
saved provisioning profile to temporary path
provisioning profile copied to home directory
done retrieving provisioning profile data
checking if teamID is present in keychain and that certificate is valid...
removed provisioning profile from the home directory
Error: codesign ident not present in find-identity: <ID STRING>
Looking for identities matching "(<APPLE TEAM ID>)"
     0 valid identities found

    at Object.ensureCertificateValid (/usr/local/turtle-js/node_modules/@expo/xdl/build/detach/IosCodeSigning.js:123:11)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async (/usr/local/turtle-js/node_modules/@expo/xdl/build/detach/IosIPABuilder.js:120:32)
    at async buildAndSignIPA (/usr/local/turtle-js/build/builders/ios/archive.js:73:5)
    at async Object.buildArchive [as default] (/usr/local/turtle-js/build/builders/ios/archive.js:40:9)
    at async Object.iosBuilder [as ios] (/usr/local/turtle-js/build/builders/ios/index.js:30:13)
    at async build (/usr/local/turtle-js/build/jobManager.js:181:33)
    at async processJob (/usr/local/turtle-js/build/jobManager.js:118:32)
    at async Object.doJob (/usr/local/turtle-js/build/jobManager.js:49:5)
    at async main (/usr/local/turtle-js/build/server.js:66:13)

Found the issue - my exported p12 certificate file only included the public key. It needs to include both.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.