title: Code Signing: Missing DEVELOPER_DIR path
body: <p>I'm using the <code>codesign</code> command line utility to sign an Atom Electron .app folder. The command I use is:</p>
  
  <pre><code>codesign --verbose --deep --force --sign "Mac Developer: &lt;MY NAME AND IDENTIFIER HERE&gt;" AdminTool.app/Contents/Frameworks/Squirrel.framework
  </code></pre>
  
  <p>I read that with Yosemite, the <code>codesign</code> utility requires that you manually sign each framework before you can sign the entire .app folder, so that's what I'm trying to do by signing just <code>Squirrel.framework</code> for now. </p>
  
  <p>I get this error:</p>
  
  <pre><code>xcrun: error: missing DEVELOPER_DIR path: /Library/Developer/CommandLineTools/usr/bin/xcrun/
  
  AdminTool.app/Contents/Frameworks/Squirrel.framework: the codesign_allocate helper tool cannot be found or used
  </code></pre>
  
  <p>I looked at a previous StackOverflow thread regarding the <code>codesign_allocate helper tool cannot be found</code> issue and I followed what it said by reassigning the <code>DEVELOPER_DIR</code> environment variable to the path in the <code>xcrun</code> error. I'm not sure if I messed something up and now cannot sign my app as a result.  </p>
  
  <p>Any help and/or pointers would be greatly appreciated!</p>