For someone else, stumbling over this, the problem is actually in your application identifier, so just deleting training profiles will not solve anything. Here's how to fix it:
1. Login into your apple developer account 2. Choose certificates and provisioning 3. Click on App ID 4. Click on the edit button for that App ID 5. Turn off Associated Domains 6. Save
This will invalidate the existing provisioning profiles, so go to the Provisioning Profiles and you will see that the small icons showing the old ones are no longer valid. Remove them. Create new ones, download them and rebuild your application.
The problem is resolved.
source share