title: Facing issue on stapling ticket with Unix executable after Notarization on MAC OSX
body: <p>This query on how to staple ticket with unix executable after notarization. I am new to MAC OSX environment. Following steps are used to notarize and staple unix executable :-</p>
  
  <p>1) Created the directory codesign_utilities</p>
  
  <p>2) Added all the codesigned unix executables into it and compressed it to zip file as :- <strong>zip -r codesign_utilities.zip codesign_utilities</strong></p>
  
  <p>3) Run command for notarization:-  <strong>xcrun altool --notarize-app --primary-bundle-id "com.def.ghi" --username "developer ID" --password "related password" --file codesign_utilities.zip</strong>. I am able to notarize the zip file.</p>
  
  <p>4) Later, I am trying to staple the ticket with one of the unix executable which was part of the zip file with command:- <strong>xcrun stapler staple "unix executable"</strong>. But, it is throwing error as:- 
  <strong>"Could not remove existing ticket from /Contents/CodeResources ... {Error Domain=NSPOSIXErrorDomain Code=20 "Not a directory"}}
  The staple and validate action failed! Error 73</strong>.</p>
  
  <p>I believe the error is occurring because it is just unix executable and not a executable bundle in .app format. </p>
  
  <p>Queries:-</p>
  
  <ul>
  <li>Can you help me what are the best ways to staple the ticket with unix executable? </li>
  <li>Is it mandatory to create executable bundle for notarization and stapling? If yes, please provide the steps?</li>
  </ul>