For me I tried following 2 steps which sadly did not work :
- deleting all provisional profile from Xcode Preferences Accounts ? View Details , downloading freshly all provisional profiles.
- Restarting Xcode everytime.
Instead, I tried to solve keychain certificate related another issue given here
This certificate has an invalid issuer Apple Push Services
This certificate has an invalid issuer
- In keychain access, go to View -> Show Expired Certificates.
- Look for expired certificates in Login and System keychains and an "Apple Worldwide Developer Relations Certification Authority".
- Delete all expired certificates.
- After deleting expired certificates, visit the following URL and download the new AppleWWDRCA certificate, https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
- Double click on the newly downloaded certificate, and install it in your keychain. Can see certificate valid message.
Now go to xcode app. target ? Build Setting ? Provisioning Profile . Select value from 'automatic' to appropriate Provisioning profile . Bingo!!! profile mismatch issue is solved.