No active default certificate matching name 'Apple Development: ...' or `iPhone Developer: ...' was found. Any matching certificates have expired

I am wondering what this error means? Is this a Fire specific error?

I tried to deploy my app to my iPhone after I upgraded to 11.5 only now its complaining about this error: No active default certificate matching name 'Apple Development: ...' or iPhone Developer: …’ was found. Any matching certificates have expired.`

If I run the command the command to list all code signing identities (see list below) it lists a multiple version. The 71F83D5D54681053CBF8485D34F5D7713B51445F one is used by Xcode when it tries to sign an application with the same bundle identifier as the one I use in my Fire project.

❯ security find-identity -v -p codesigning                                                                                                     [~/Desktop]
  1) C0532163B5349B8002C1C0ED077D881073B59A0B "Apple Development: weyert.deboer@XXXX (LJ6552CW63)"
  2) 6486759834B7085CFBB6A5F9AD3BB80FA49CB979 "Apple Development: Weyert de Boer (33KW8PFCA5)"
  3) 71F83D5D54681053CBF8485D34F5D7713B51445F "Apple Development: Weyert de Boer (33KW8PFCA5)"
  4) 71F83D5D54681053CBF8485D34F5D7713B51445F "Apple Development: Weyert de Boer (33KW8PFCA5)"
  5) 60F7DF532E45F3B12DF040FC55E54FFA0232D2F5 "Apple Distribution: XXX (2943B48G98)"
  6) 7D3B82F002D41CFF8F5CDD692FB020EC5C3866D7 "iPhone Developer: Weyert de Boer (33KW8PFCA5)"
  7) 0FD45EFE814ABB404005B1A33FC2C18EBB904864 "Apple Distribution: XXX (2943B48G98)" (CSSMERR_TP_CERT_REVOKED)
  8) 19042F2D73068596BB3B64D6E6D2D11DE8574EC0 "Apple Distribution: XXX (2943B48G98)"
     8 valid identities found

That’s the one I also have selected in Fire settings as provision profile; I think its related to the certificate as the one I can happily select in Xcode seems to have a postfix (Unexpected value) in Fire. What does that means? Does that a ring a bell to you?

Is there a way to delete all iOS dev related certificates from my computer and only ensure correct are there?

Also the error message suggests it expired but when I go through Keychain the expires is all related certificates on like 27 April 2022

Update: I have also tried it with a total different notebook and Apple Developer account but I still get this error. I have spend the last 8 hours on this problem.

For example, what does this mean?

@mh @ck I am getting this issue also when trying to run in Simulator when I try to add a custom Entitlements file to the project. As I would like to define Universal Links for the app.

Looks like if you don’t add the entitlement file it doesn’t try to sign the app for the simulator?

I have attached a simplified version of the app + the build log output and of codesigning list

AppCombined.zip (124.1 KB)

Not sure if this useful but found this:

[bat warning]: Theme 'ansi-light' is deprecated, using 'ansi' instead.
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /Users/weyertdeboer/Library/Application Support/RemObjects Software/EBuild/CrossBox/LocalServer/ToffeeCertificates.txt
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │
   2   │ RemObjects ToffeeHelper for Elements and EBuild.
   3   │ Copyright RemObjects Software 2016-. All Rights Reserved. Created by marc hoffman.
   4   │ Local build.
   5   │
   6   │ Certificate: CommonName=Apple Development: Weyert de Boer (J8GFNUPH4U) | Fingerprint=34A48A51FA2888A4A62F64490EB52F8F2474C71C| BundleSeedID=J8GFNUPH4U | Type=Apple | Expires=2022-04-28 03:16:24
   7   │ Certificate: CommonName=iPhone Developer: Weyert de Boer (J8GFNUPH4U) | Fingerprint=F75968BF775A653EC1A4D4D161AA3477801E47EA | Type=iOS| BundleSeedID=J8GFNUPH4U | Expires=2022-04-28 03:19:49
   8   │ Certificate: CommonName=Apple Development: Weyert de Boer (J8GFNUPH4U) | Fingerprint=6DF5C8A250DEC8CBB8B76D31DCB82E94988AE50F| BundleSeedID=J8GFNUPH4U | Type=Apple | Expires=2022-04-28 03:26:12
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

The directory: /Users/weyertdeboer/Library/Application Support/RemObjects Software/EBuild/Obj/App-CF5147D42938CFB96EFBE2E9F6C999B5887E54F2/ does seem to have some relevant files in a subdirectory:

❯ tree    [~/Library/Application Support/RemObjects Software/EBuild/Obj/App-CF5147D42938CFB96EFBE2E9F6C999B5887E54F2/Debug/Toffee-iOS]
.
├── Caches
│   ├── AssetCatalog-Images.xcassets-Device.cache
│   ├── AssetCatalog-Images.xcassets-Device.snapshot
│   ├── AssetCatalog-Images.xcassets-Simulator.cache
│   ├── AssetCatalog-Images.xcassets-Simulator.snapshot
│   ├── CoreCompile-Device.cache
│   ├── CoreCompile-Device.messages.cache
│   ├── CoreCompile-Simulator.cache
│   ├── CoreCompile-Simulator.messages.cache
│   ├── Linker-Device.cache
│   ├── Linker-Simulator.cache
│   ├── LinkerMerge-Device.cache
│   ├── LinkerMerge-Simulator.cache
│   ├── ResolveReferences.cache
│   ├── XibOrStoryboard-LaunchScreen.xib-Device.cache
│   └── XibOrStoryboard-LaunchScreen.xib-Simulator.cache
├── Device
│   ├── App.app
│   │   ├── App
│   │   ├── AppIcon60x60@2x.png
│   │   ├── AppIcon76x76@2x~ipad.png
│   │   ├── Assets.car
│   │   ├── Info.plist
│   │   ├── LaunchScreen.nib
│   │   ├── Pkginfo
│   │   └── embedded.mobileprovision
│   ├── App.publichash
│   ├── TempAssetCatalogs
│   │   └── Images
│   │       ├── AppIcon60x60@2x.png
│   │       ├── AppIcon76x76@2x~ipad.png
│   │       ├── Assets.car
│   │       └── Partial.plist
│   ├── TempXibAndStoryboards
│   │   └── LaunchScreen
│   │       ├── LaunchScreen.nib
│   │       └── Partial.plist
│   └── arm64
│       ├── App
│       ├── App.a
│       ├── App.o
│       ├── AppDelegate-bf34dee2e355bd2cdf22862d5df4ee73.o
│       ├── Global-2ae22a256528b097f168e3c4fa61c3a3.o
│       ├── RootViewController-6adec6489f4eaf918399c05a5c943291.o
│       └── elements-incremental-output.txt
├── Entitlements.entitlements
├── Libraries
│   ├── Device
│   │   ├── libSwift.a
│   │   └── libToffee.a
│   └── Simulator
│       ├── libSwift.a
│       └── libToffee.a
├── Simulator
│   ├── App.app
│   │   ├── App
│   │   ├── AppIcon60x60@2x.png
│   │   ├── AppIcon76x76@2x~ipad.png
│   │   ├── Assets.car
│   │   ├── Info.plist
│   │   ├── LaunchScreen.nib
│   │   └── Pkginfo
│   ├── App.publichash
│   ├── TempAssetCatalogs
│   │   └── Images
│   │       ├── AppIcon60x60@2x.png
│   │       ├── AppIcon76x76@2x~ipad.png
│   │       ├── Assets.car
│   │       └── Partial.plist
│   ├── TempXibAndStoryboards
│   │   └── LaunchScreen
│   │       ├── LaunchScreen.nib
│   │       └── Partial.plist
│   └── x86_64
│       ├── App
│       ├── App.a
│       ├── App.o
│       ├── AppDelegate-bf34dee2e355bd2cdf22862d5df4ee73.o
│       ├── Global-2ae22a256528b097f168e3c4fa61c3a3.o
│       ├── RootViewController-6adec6489f4eaf918399c05a5c943291.o
│       └── elements-incremental-output.txt
└── embedded.mobileprovision

Looking at the embedded.mobileprovision-file in this directory it looks similar to the one that’s part of the App that Xcode build. Would this mean it did actually find the certificate?

Before I tried the above I zapped all revoked all my certificates in the Apple Developer site and removed them from my computer and regenerate a single one and imported it. But this didn’t resolve the problem the file ToffeeCertificates.txt in one of the other directors in Application Support does now have this contents:

RemObjects ToffeeHelper for Elements and EBuild.
Copyright RemObjects Software 2016-. All Rights Reserved. Created by marc hoffman.
Local build.

Certificate: CommonName=iPhone Developer: Weyert de Boer (J8GFNUPH4U) | Fingerprint=46AFC1DC3CBEC4A4940B7C55E36012645A77A209 | Type=iOS| BundleSeedID=J8GFNUPH4U | Expires=2022-04-28 10:50:06

This means your project contains this certificate name, but Fire does not see this (or, it seems, any) certificate in the list of valid options. Are you using different keychains maybe?

Hmm. AFAIK, Simulator is never signed?

This means your project contains this certificate name, but Fire does not see this (or, it seems, any) certificate in the list of valid options. Are you using different keychains maybe?

Hmm, not that you say this. I am wondering if my project is corrupt? Could something off in the project files cause this error?

Not really, no. send me the .elements file. Also try removing the Certificate setting from it, and also any Keychain-related settings it might have.

Mailed it :slight_smile:

@mh Creating a new project and re-adding all files seems to have worked and now it’s deploying the iPhone again. Now it is only stuck after the Launchscreen is shown and when I click “stop” to disconnect the debugger the continues running

I believe thats a know issue www fixe last week or the week before.

Cool. can you compare the two to see whats different?