This question has been asked Xcode Command /usr/bin/codesign failed with exit code 1 : errSecInternalComponent and Xcode ios app development code signing and I followed every answer given there but no luck for me.
The issue started when I got a new certificate, and I added it in the keychain and removed the older one. Now I am getting the following error.
Any help will be highly appreciated.