I'm facing the same issue.
I tried : Go to /Users/MYUSER/Library/Developer/Xcode/DerivedData/
Moved all the files to Trash, empty the trash
Opened Xcode, Clean and Build.
Restarting xcode or macbook, dragging and dropping certificate in the keychain
I tried also: Close Xcode.
Open Key Chain.
Find the iOS Developer cert in Local.
Drag and drop the cert from Local to the System tab.
Enter admin password when prompted.
Start Xcode and build project for your device.
But all the above steps didn't solve the issue. Any luck ?