简体   繁体   中英

DropboxSDK and Dropbox framework in iOS

I want to use 2 different framework in my project. The frameworks are DropboxSDK.framework and Dropbox.framework. But 2-3 files are common in both these framework which are not allowing me run the application and are giving linker error as following.

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)

I have to use both of these framework for different reasons. One framework is not sufficient to do all the things. Is there any way by which I can achieve my target. Please advise.

Thanks in advance

I had same issue with following files

DBAccountInfo

DBConnectController

DBError

DBKeychain

DBSession+iOS

DBSession

I have suffixed "Old" to these class names my problem is solved

DBAccountInfoOld

DBConnectControllerOld

DBErrorOld

DBKeychainOld

DBSessionOld+iOS

DBSessionOld

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM