title: Embedding and signing programs in XCode/OS X
body: <p>I have a Mac app developed in XCode that contains a helper executable. When I export the app as a signed application, the helper executable is unable to do things like write to the file system.</p>
  
  <p>I can fix this up in the exported app by using a forced deep codesign from the terminal, but that doesn't help me for distributing the app on the App Store.</p>
  
  <p>There's an "Embedded Binaries" list in the target's general setting. When I add the executable and the library it depends on using the + button in that list, XCode imports the files, but neither automatically adds them to the bundle nor lists them in the "Embedded Binaries" list.</p>
  
  <p><img src="https://i.stack.imgur.com/JgOia.png" alt="Embedded binaries list"></p>
  
  <p>How do I correctly add this executable to the bundle and have it included and signed for distribution?</p>