I am new to mac and i am getting this error as below
What should i do i have bought the developer licence and i created the provisioning certificate but still i am
I was able to fix this same issue by turning on push notifications and then turning them back off.
Not sure why this works, but in Xcode 9.4.1, and Xcode 10 Beta this fix still works.
Update: This works in Xcode 10.1 & 10.2