5

I'm trying to build an OS X target that imports the Dropbox framework and am getting 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've created for this:

{
  "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'm including it in my project like so:

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 code sign the framework after copying it to the app bundle.

Here is what I've tried:

  • 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 http://furbo.org/2013/10/17/code-signing-and-mavericks/)

Thanks!

Jesse Bunch
  • 6,651
  • 4
  • 36
  • 59

0 Answers0