title: The executable gets signed with invalid entitlements in Xcode
body: <p>I got this error with Xcode when I try to run the app on my device.</p>
  <blockquote>
  <p>The executable was signed with invalid entitlement</p>
  </blockquote>
  <p>It worked fine with old Xcode Anyone knows how to get rid of the error?</p>
  <p><img src="https://i.stack.imgur.com/NYavl.png" alt="enter image description here" /></p>