Xcode 8 throws the following error despite provisioning seems to be fine:
How to fix it?
It looks like an Xcode 8 bug. Cleaning the project by pressing Command+Shift+K or Product -> Clean fixes it.