I just cracked open an older project to apply a bug fix.
After 2 minutes of fixing the, bug I go to build it to my device, and I get this error \"A valid provisioni
1) First confirm that certificate is installed in your mac properly. 2) Both certificate Distribution & Developer should be added properly. 3) And if it is not there, then create new and then again install it. 4) Then set profiles in your project.
I hope these all check will be helpful.