title: Codesign verify returns invalid argument
body: <p>I have an app that was signed on my build server (without errors). Apparently something went wrong and when I open it in Finder I get a message that the app is damaged.</p>
  
  <p>The problem is, when I do </p>
  
  <p><code>codesign --verify --verbose MyApp.app</code></p>
  
  <p>I get </p>
  
  <p><code>MyApp.app: Invalid argument</code></p>
  
  <p>It works with any other App from Applications folder. I would expect to get a more detailed error on how the signature is broken. </p>
  
  <p>Is there any option to get more details? What could cause that behaviour?</p>