recommand to use Automatically manage signing ,and remember to delete entitlements, it's managed by auto signing , so delete them also in Building Settings -> code signing , delete entitlements , then bug is gone!
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: