Cocoapods - the code object is not signed at all

I am trying to create an OS X target that imports the Dropbox framework and get this error:

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

Here is the podspec I created:

{
  "name": "Dropbox-OSX",
  "version": "3.1.1",
  "summary": "The Dropbox Sync & 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
}

And I include it in my project like this:

target 'TestApp_Mac', :exclusive => true do
    platform :osx, '10.10'
    pod 'Dropbox-OSX', :podspec => './Specs/Dropbox-OSX.podspec.json', :inhibit_warnings => true
end

Any ideas how to fix this? I need Xcode to encode the signature of the frame after copying it to the application bundle.

Here is what I tried:

  • I added - canceled flags for codes. It makes me pass this problem; however, we get into the problem of “unsealed content present in the root directory of the inline structure” and I am told that this is not a good idea (see http://furbo.org/2013/10/17/code-signing-and -mavericks / )

Thank!

+4

All Articles