There is no certificate in your keychain, i.e. p12 file for the selected training profile. You just need to open the .p12 file if you have already created a new account in Apple Developer. Then Clean and Create an Xcode project.
I will solve your problem.
source share