1

我想在我的项目中使用 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)

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

提前致谢

4

1 回答 1

2

我对以下文件有同样的问题

DBAccountInfo

DBConnectController

DBError

DBKeychain

DBSession+iOS

DBSession

我在这些类名后面加上“旧”后缀,我的问题就解决了

DBAccountInfoOld

DBConnectControllerOld

DBErrorOld

DBKeychainOld

DBSessionOld+iOS

DBSessionOld
于 2013-11-07T08:15:51.303 回答