The certificate used to sign "XXXX" has either expired or has been revoked. An updated certificate is required to sign and install the application

Hello,
I am aware that it seems like a simple problem but in a project / apple id I have the problem that it gives me the error:

The certificate used to sign "***" has either expired or has been revoked. An updated certificate is required to sign and install the application.

  1. I have updated the certificate.

  2. I have removed old certificates from the keyChain.

  3. I have removed the account (apple id) from XCode and reloaded the provisioning profiles.

  4. In the tab 'Sign & Capabilities' it tells me that tot is OK.

  5. I have tried to force the correct PP and Certificate to be used (although it automatically already selects them fine).

  6. I have reinstalled XCode.

  7. Rebooted the machine several times (Currently using 12.3).

And I am unable to install a debug version on the devices. Yes, I am able to do an Archive and generate an adhoc ipa but I don't understand why the normal debug process is not possible.
Has it happened to anybody?
It seems like a certificate issue on the machine and that XCode selects an old one. On another mac, the same project, with the same accounts, it is working correctly

Attached details of the error:

Details

Unable to install "MyApp"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620392
Recovery Suggestion: The certificate used to sign "AmericanIdol-tel" has either expired or has been revoked. An updated certificate is required to sign and install the application.

The identity used to sign the executable is no longer valid.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620392
User Info: {
  DVTRadarComponentKey = 487925;
  MobileDeviceErrorCode = "(0xE8008018)";
  "com.apple.dtdevicekit.stacktrace" = (
0  DTDeviceKitBase           0x000000012b961c8f DTDKCreateNSErrorFromAMDErrorCode + 220
1  DTDeviceKitBase           0x000000012b9a0241
90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]blockinvoke + 155
2  DVTFoundation            0x000000011008564b DVTInvokeWithStrongOwnership + 71
3  DTDeviceKitBase           0x000000012b99ff82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4  IDEiOSSupportCore          0x000000012b810a10
118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]blockinvoke.292 + 3513
5  DVTFoundation            0x00000001101b417e DVT
CALLINGCLIENTBLOCK + 7
6  DVTFoundation            0x00000001101b5da0 _DVTDispatchAsyncblockinvoke + 1191
7  libdispatch.dylib          0x00007fff6758d6c4
dispatchcallblockandrelease + 12
8  libdispatch.dylib          0x00007fff6758e658 dispatchclientcallout + 8
9  libdispatch.dylib          0x00007fff67593c44
dispatchlaneserialdrain + 597
10 libdispatch.dylib          0x00007fff675945d6
dispatchlaneinvoke + 363
11 libdispatch.dylib          0x00007fff6759dc09 dispatchworkloopworkerthread + 596
12 libsystempthread.dylib       0x00007fff677e8a3d pthreadwqthread + 290
13 libsystem
pthread.dylib       0x00007fff677e7b77 startwqthread + 15
);
}


System Information

macOS Version 10.15.7 (Build 19H114)
Xcode 12.3 (17715) (Build 12C33)
Timestamp: 2021-01-15T09:53:53+01:00

Answered by jbiscarri in 657318022
SOLVED
I added, along with multiple other changes, an XCFramework.
I marked it as "Embed Without Signing" instead of "Embed & Sign", a day wasted by this detail. (It was my fault completely).
It would have been good if the detail of the error indicated a better reason for it.
Hope this can help other people.
Accepted Answer
SOLVED
I added, along with multiple other changes, an XCFramework.
I marked it as "Embed Without Signing" instead of "Embed & Sign", a day wasted by this detail. (It was my fault completely).
It would have been good if the detail of the error indicated a better reason for it.
Hope this can help other people.
The certificate used to sign "XXXX" has either expired or has been revoked. An updated certificate is required to sign and install the application
 
 
Q