The identity ‘iPhone Developer’ doesn’t match any valid certificate/private key pair in the default keychain

Problem:

Building in xcode gives the following error: The identity ‘iPhone Developer’ doesn’t match any valid certificate/private key pair in the default keychain

Solution:

There is a problem with your certificate file. You will need to request a new one. Log in to the iOS Provisioning Portal and go to Certificates -> Distribution.