I've been researching this for a few days now and haven't been able to find a solution.
Backstory: I'm picking up a project that a previous worker left behind. I'm using a different Macbook to work on the project than was originally used, and I think that's an important part to my problem.
Problem: I've gotten the emulator to compile the program just fine, but when I try to install to a physical iPad, Xcode gives me a drop-down error that says
"Failed to code sign 'app-name'. No valid signing identities matching the teamID 'id-value' were found. [Cancel] [Fix Issue] "
When I click [Fix Issue], I get this message:
"Could not generate key pair for CSR. [Cancel] [Done]".
When I Go to Xcode->Preferences->Accounts->ID->Signing Identities->iOS Development->Create, I get the same error: "Could not generate key pair for CSR. [OK]"
I found this StackOVerflow response, and copied and ran their script and found two errors in my .proj file. I hoped it would fix the problem but it did not.