问题
I wanna use Dropbox's Core and Sync APIs together in an iOS app, I have started working on it and implemented core API successfully using framework DropboxSDK.framework, Now I started working on Sync API and added Dropbox.framework and I am getting:
…../Dropbox.framework/Headers/DBAccountInfo.h:5:1: Duplicate interface definition for class 'DBAccountInfo'
…../Dropbox.framework/Headers/DBError.h:32:3: Typedef redefinition with different types ('enum DBErrorCode' vs 'enum DBErrorCode')
I know this is happening because some of the header are same in both API framework I am using in this app. Is there any solution to make these two API work in same app.
Any help greatly appreciated.
Thank you in advance
回答1:
I've got the same problem, so I've made a framework that makes this a bit easier.
https://github.com/skela/dbcore
来源:https://stackoverflow.com/questions/17102536/dropbox-core-and-sync-apis-together-in-ios-app