title: Cocoapods - Code object is not signed at all
body: <p>I'm trying to build an OS X target that imports the Dropbox framework and am getting this error:</p>
  
  <pre><code>CodeSign /Users/jessebunch/Library/Developer/Xcode/DerivedData/TestApp-bxjgcsgqofvdyidodqalwworvmat/Build/Products/Debug/TestApp.app
      cd /Users/jessebunch/Projects/testapp/Example
      export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
  
  Signing Identity:     "-"
  
      /usr/bin/codesign --force --sign 80B12837F588266A4A1FB1EF7D9C7F58E3A91E67 /Users/jessebunch/Library/Developer/Xcode/DerivedData/TestApp-bxjgcsgqofvdyidodqalwworvmat/Build/Products/Debug/TestApp.app
  
  /Users/jessebunch/Library/Developer/Xcode/DerivedData/TestApp-bxjgcsgqofvdyidodqalwworvmat/Build/Products/Debug/TestApp.app: code object is not signed at all
  In subcomponent: /Users/jessebunch/Library/Developer/Xcode/DerivedData/TestApp-bxjgcsgqofvdyidodqalwworvmat/Build/Products/Debug/TestApp.app/Contents/Frameworks/Dropbox.framework
  Command /usr/bin/codesign failed with exit code 1
  </code></pre>
  
  <p>Here is the podspec I've created for this:</p>
  
  <pre><code>{
    "name": "Dropbox-OSX",
    "version": "3.1.1",
    "summary": "The Dropbox Sync &amp; Datastore API SDK for OSX.",
    "homepage": "https://www.dropbox.com/developers/sync",
    "license": {
      "type": "Copyright",
      "file": "dropbox-osx-sync-sdk-3.1.1/LICENSE.txt"
    },
    "authors": "Dropbox",
    "source": {
      "http": "https://www.dropbox.com/developers/downloads/sdks/datastore/osx/dropbox-osx-sync-sdk-3.1.1.zip"
    },
    "platforms": {
      "osx": null
    },
    "public_header_files": "dropbox-osx-sync-sdk-3.1.1/Dropbox.framework/Headers/*.h",
    "preserve_paths": "dropbox-osx-sync-sdk-3.1.1/Dropbox.framework",
    "frameworks": ["Dropbox"],
    "vendored_frameworks": "dropbox-osx-sync-sdk-3.1.1/Dropbox.framework",
    "resources": "dropbox-osx-sync-sdk-3.1.1/Dropbox.framework",
    "xcconfig": {
      "FRAMEWORK_SEARCH_PATHS": "\"${PODS_ROOT}/Dropbox-OSX/dropbox-osx-sync-sdk-3.1.1\""
    },
    "libraries": "c++",
    "requires_arc": false
  }
  </code></pre>
  
  <p>And I'm including it in my project like so:</p>
  
  <pre><code>target 'TestApp_Mac', :exclusive =&gt; true do
      platform :osx, '10.10'
      pod 'Dropbox-OSX', :podspec =&gt; './Specs/Dropbox-OSX.podspec.json', :inhibit_warnings =&gt; true
  end
  </code></pre>
  
  <p>Any ideas how to fix this? I need Xcode to code sign the framework after copying it to the app bundle. </p>
  
  <p>Here is what I've tried:</p>
  
  <ul>
  <li>I added --deep to the codesigning flags. This gets me past this issue; however, then we get into the problem of "unsealed contents present in the root directory of an embedded framework" and I'm told that this is not a good idea anyway (see <a href="http://furbo.org/2013/10/17/code-signing-and-mavericks/" rel="noreferrer">http://furbo.org/2013/10/17/code-signing-and-mavericks/</a>)</li>
  </ul>
  
  <p>Thanks!</p>