title: Failed to launch macOS app built in Xcode
body: <p>I've built an App in Xcode in release mode. Is signed with valid Developer ID certificate. And the app launches fine on some MacBooks.
  But on another launch fails with error </p>
  
  <blockquote>
    <p>The application %name% can't be opened.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/S6A4J.jpg" width="300" ></p>
  
  <p>Then I try to launch it from terminal with <code>open</code> command it says </p>
  
  <blockquote>
    <p>LSOpenURLsWithRole() failed with error -54 for the file /Applications/Gaetano Lunches.app.</p>
  </blockquote>
  
  <p>And then I try to launch directly the binary file from package contents
  it says</p>
  
  <blockquote>
    <p>-bash: /Applications/Gaetano Lunches.app/Contents/MacOS/Gaetano Lunches: Operation not permitted</p>
  </blockquote>
  
  <p>On all MacBooks app installation from Anywhere is allowed. spctl-master is disabled. Permissions for files are correct. But the app cannot be launched.</p>