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
In my case, it was the problem when I setup my time manually two month earlier on my iPhone. But when I changed to set time automatically, it worked fine.
Setting
-> General
-> Date & Time
-> set time automatically
If it does not work, set time automatically of both mac & iPhone, it should work fine.