Entitlements don't match Provisioning Profile (0xE8008016)
I had this same problem and none of the solutions I found on stack overflow, or github worked for me.
Here's my solution:
Select your project in the Project navigator
Select the "General" tab.
- To the left of the "General" tab, select your target to the left; (this should show a dropdown with a list of targets)
- Below your current target you should see an item {your project}Tests; select that.
- Check the signing properties in the general tab and make sure they are valid.
This was the problem for me. Hope it helps.
Xcode 9 GM. Error appears if manual signing turned on.
Turn on automatic code signing. Turn off automatic code signing.