Dropbox Core and Sync APIs together in iOS app

妖精的绣舞 提交于 2019-12-23 21:17:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!