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

Hi,
I’ve recently had to renew my distribution and provisioning profile

running expo build:ios works fine and a new build is created

However I normally use turtle for builds so I retrieved the new credentials with

expo fetch:ios:certs

These credentials are associated with Apple Team ID: TEAMID
Wrote distribution cert credentials to disk.
Wrote push key credentials to disk.
Wrote provisioning profile to disk
Save these important values as well:

Distribution P12 password: P12PASS
Push Key ID: XXX
Push P12 password: (not available)

All done!

then ran with the updated credentials:

export EXPO_IOS_DIST_P12_PASSWORD=P12PASS

turtle build:ios --team-id TEAMID
–dist-p12-path /path/to/new/APP_dist.p12
–provisioning-profile-path /path/to/new/app.mobileprovision
–public-url https://oururl/ios-index.json

It starts fine


Mar 25 13:59:41 turtle[8623] INFO: importing certificate into keychain…
platform: “ios”
buildPhase: “importing certificate into keychain”
Mar 25 13:59:41 turtle[8623] INFO: certificate has password
platform: “ios”
buildPhase: “importing certificate into keychain”
Mar 25 13:59:41 turtle[8623] INFO: 1 identity imported.
platform: “ios”
buildPhase: “importing certificate into keychain”
source: “stdout”
Mar 25 13:59:41 turtle[8623] INFO: imported certificate into keychain
platform: “ios”
buildPhase: “importing certificate into keychain”
Mar 25 13:59:41 turtle[8623] INFO: done importing distribution certificate into keychain
platform: “ios”
buildPhase: “importing certificate into keychain”

but then exits on

Mar 25 14:21:23 turtle[8905] INFO: checking if teamID is present in keychain and that certificate is valid…
platform: “ios”
buildPhase: “building and signing IPA”
Mar 25 14:21:24 turtle[8905] INFO: removed provisioning profile from the home directory
platform: “ios”
buildPhase: “building and signing IPA”
Mar 25 14:21:24 turtle[8905] ERROR: Error: codesign ident not present in find-identity: 1FFD…
Looking for identities matching “(TEAMID)”
0 valid identities found

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

platform: “ios”

turtle is version 0.20.7

Any ideas as to what is going wrong or what I could try. Not much hair left here !!