I had the exact same problem in development. I solved it by
- Go to XCode preferences, view details of the Apple ID, and delete the provisioning file that's complaining.
- Go to the Keychain Access, and delete the development certificate that's related to the provisioning file you just deleted.
- In Apple Member Center, download the development provisioning file you just deleted locally, double click the file to make sure it's appearing in XCode.
- Download the development certificate you just deleted locally, and double click to make sure it appears in the Keychain Access.
- It should be good to go now.