The App ID's prefix used in the certificate needs to match the one you
have in your mobile provisioning profile, maybe they are different, see
if that helps: Technical Q&A QA1879: Resolving App ID Prefix
MismatchingIf unsure, just generate a new App ID and go through the
process in the Apple developer portal again to make sure you have the
correct certificates and provisioning profiles on your machine.