我正在尝试构建一个导入Dropbox框架的OS X目标并收到此错误:
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
这是我为此创建的podspec:
{
"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
}
我将其包含在我的项目中:
target 'TestApp_Mac', :exclusive => true do
platform :osx, '10.10'
pod 'Dropbox-OSX', :podspec => './Specs/Dropbox-OSX.podspec.json', :inhibit_warnings => true
end
任何想法如何解决这个问题?我需要Xcode在将框架复制到应用程序包后对框架进行编码。
这是我尝试过的:
谢谢!