My team is transferring the app we are developing from one mac to another and are running into issues code signing.
We exported the certificate from the old computer as a .p12 file and installed it on the login keychain of the new computer. We also went to Xcode > Preferences > Accounts > Gear Icon > Export Developer Accounts on the old computer, then imported the Developer Account on the new computer.
When we try to run the app on an iPhone, however, we get this error, even though (as far as we know), we imported the correct certificate and private key:
"No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier "com.our.bundle.identifier" were found.
I have had this error multiple times and what solves it for me is the following:
If this doesn't work then you should consider revoking your certificate and then create a new one and the do the steps above again.