question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[build:ios] Error: codesign ident not present in find-identity

See original GitHub issue

Hello!

I’m trying to build my ios expo app locally and I’m running into an issue with the codesign ident. Any help is really appreciated!

Thanks!

New Issue Checklist

  • Updated turtle-cli to the latest version (yarn global add turtle-cli or npm install --global turtle-cli).
  • I read the Contribution Guidelines.
  • I read docs.expo.dev (Managed Workflow > Distributing Your App).
  • I searched for existing GitHub issues.
  • I enclosed the complete output when running turtle, including the stack trace and command used.

Issue Description

Command executed
$ expo fetch:ios:certs
$ turtle build:ios --team-id XXXXXXXX --dist-p12-path APP_dist.p12 --provisioning-profile-path APP.mobileprovision
Complete output when running turtle, including the stack trace and command used
 Aug 28 16:40:42 turtle[2790] INFO:  Cleaning up iOS...
  platform: "ios"
  buildPhase: "configuring NSBundle"
Aug 28 16:40:42 turtle[2790] INFO:  building and signing IPA
  platform: "ios"
  buildPhase: "building and signing IPA"
Aug 28 16:40:42 turtle[2790] INFO:  saved provisioning profile to temporary path
  platform: "ios"
  buildPhase: "building and signing IPA"
Aug 28 16:40:42 turtle[2790] INFO:  provisioning profile copied to home directory
  platform: "ios"
  buildPhase: "building and signing IPA"
Aug 28 16:40:42 turtle[2790] INFO:  done retrieving provisioning profile data
  platform: "ios"
  buildPhase: "building and signing IPA"
Aug 28 16:40:42 turtle[2790] INFO:  checking if teamID is present in keychain and that certificate is valid...
  platform: "ios"
  buildPhase: "building and signing IPA"
Aug 28 16:40:43 turtle[2790] INFO:  removed provisioning profile from the home directory
  platform: "ios"
  buildPhase: "building and signing IPA"
Aug 28 16:40:43 turtle[2790] ERROR: Error: codesign ident not present in find-identity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Looking for identities matching "(XXXXXXXXXXXX)"
     0 valid identities found
at Object.ensureCertificateValid (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:18:11)
at Object.build (/@expo/xdl@59.1.0/src/detach/IosIPABuilder.js:31:32)
at buildAndSignIPA (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:58:3)
at Object.buildArchive [as default] (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:20:5)
at iosBuilder (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/builders/ios/index.ts:33:7)
at /Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
at Command.<anonymous> (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)

platform: “ios” Aug 28 16:40:43 turtle[2790] INFO: delete keychain… platform: “ios” buildPhase: “deleting keychain” Aug 28 16:40:43 turtle[2790] INFO: deleting keychain… platform: “ios” buildPhase: “deleting keychain” Aug 28 16:40:50 turtle[2790] INFO: done deleting keychain platform: “ios” buildPhase: “deleting keychain” Aug 28 16:40:50 turtle[2790] ERROR: Failed to build standalone app err: Error: codesign ident not present in find-identity: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Looking for identities matching “(XXXXXXXXXXXX)” 0 valid identities found

  at Object.ensureCertificateValid (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:18:11)
  at Object.build (/@expo/xdl@59.1.0/src/detach/IosIPABuilder.js:31:32)
  at buildAndSignIPA (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:58:3)
  at Object.buildArchive [as default] (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:20:5)
  at iosBuilder (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/builders/ios/index.ts:33:7)
  at /Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
  at Command.<anonymous> (/Users/parthnarielwala/.nvm/versions/node/v14.17.5/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)

platform: “ios”

Environment

 Expo CLI 4.11.0 environment info:
    System:
      OS: macOS 11.5.2
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.17.5 - ~/.nvm/versions/node/v14.17.5/bin/node
      Yarn: 1.22.11 - /usr/local/bin/yarn
      npm: 6.14.14 - ~/.nvm/versions/node/v14.17.5/bin/npm
    SDKs:
      iOS SDK:
        Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    IDEs:
      Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
    npmPackages:
      expo: 42.0.3 => 42.0.3 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 
      react-native-web: ~0.13.12 => 0.13.18 
    npmGlobalPackages:
      expo-cli: 4.11.0
    Expo Workflow: managed

UPDATE: My certs also were active and not expired and followed all the above solutions and still couldn’t figure it out until I installed the certificate on this forum answer post https://developer.apple.com/forums/thread/662300 and it worked!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rcrvanocommented, Oct 1, 2021

Thanks a lot, @pnarielwala !

Just need to update this certificate https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer

2reactions
pnarielwalacommented, Sep 27, 2021

UPDATE: My certs also were active and not expired and followed all the above solutions and still couldn’t figure it out until I installed the certificate on this forum answer post https://developer.apple.com/forums/thread/662300 and it worked!

Read more comments on GitHub >

github_iconTop Results From Across the Web

0 valid identities found when secu… | Apple Developer Forums
0 valid identities found. But when I codesign using Developer ID Application, it works. ... So why security find-identity show 0 valid identities...
Read more >
Build failed on "expo build:ios" - Expo Forums
This is what I can find in the build logs in step “building and signing IPA”: Error: codesign ident not present in find-identity:...
Read more >
codesign gives always no identity found error via terminal
Whenever I try to do codesign -s "our identity" my.app always gives no identity found. Can someone give a step by step process...
Read more >
Expo iOS 빌드 실패: codesign ident not present - 네이버 블로그
expo build:ios 로 빌드 실패하였는데 expo 빌드 로그를 살펴보니 아래와 같은 오류가 ... Error: codesign ident not present in find-identity: ...
Read more >
Ionic.io iOS Distribution Profile Packaging Error: Code Sign error
However on ionic package build ios --profile project_dist I get the ... Code Sign error: No code signing identities found: No valid signing ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found