In my case, I had two certificate with the same name. Xcode used the one that had more expiration date, but my profile referenced the other one.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: