iOS中的DropboxSDK和Dropbox框架

时间:2013-11-07 08:11:43

标签: ios frameworks dropbox

我想在我的项目中使用2个不同的框架。框架是DropboxSDK.framework和Dropbox.framework。但是这两个框架中共有2-3个文件,这些文件不允许我运行应用程序并且正在提供链接器错误。

duplicate symbol _kDBDropboxAPIVersion in:
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/DropboxSDK.framework/DropboxSDK
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/Dropbox.framework/Dropbox(DBConstants.o)
duplicate symbol _kDBDropboxAPIHost in:
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/DropboxSDK.framework/DropboxSDK
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/Dropbox.framework/Dropbox(DBConstants.o)
duplicate symbol _kDBDropboxAPIContentHost in:
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/DropboxSDK.framework/DropboxSDK
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/Dropbox.framework/Dropbox(DBConstants.o)
duplicate symbol _kDBDropboxWebHost in:
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/DropboxSDK.framework/DropboxSDK
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/Dropbox.framework/Dropbox(DBConstants.o)
duplicate symbol _kDBSDKVersion in:
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/DropboxSDK.framework/DropboxSDK
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/Dropbox.framework/Dropbox(DBConstants.o)
duplicate symbol _DBErrorDomain in:
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/DropboxSDK.framework/DropboxSDK
    /Users/sanchit/Documents/Documents/Projects/VoicePrompt/VoicePrompt 2/Dropbox.framework/Dropbox(DBError.o)
ld: 6 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

出于不同的原因,我必须使用这两个框架。一个框架不足以完成所有事情。有什么方法可以实现我的目标。请指教。

提前致谢

1 个答案:

答案 0 :(得分:2)

我对以下文件存在同样的问题

DBAccountInfo

DBConnectController

DBError

DBKeychain

DBSession+iOS

DBSession

我为这些类名后缀了“Old”,我的问题解决了

DBAccountInfoOld

DBConnectControllerOld

DBErrorOld

DBKeychainOld

DBSessionOld+iOS

DBSessionOld