在iOS应用中将Dropbox Core和Sync API一起使用 [英] Dropbox Core and Sync APIs together in iOS app

查看:68
本文介绍了在iOS应用中将Dropbox Core和Sync API一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iOS应用中同时使用Dropbox的Core API和Sync API,我已经开始使用它,并使用框架 DropboxSDK.framework 成功地实现了Core API,现在我开始使用Sync API并添加了 Dropbox.framework ,我得到:

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 :类'DBAccountInfo'的重复接口定义

..... / Dropbox.framework / Headers / DBError.h:32:3:Typedef重新定义不同的类型('enum DBErrorCode'与'enum DBErrorCode')

我知道这是发生的,因为两个API框架中的某些标头相同我正在此应用程序中使用。有什么解决方案可以使这两个API在同一个应用程序中工作。

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.

谢谢预先给您

推荐答案

我遇到了同样的问题,因此我制定了一个框架,使此操作变得容易一些。

I've got the same problem, so I've made a framework that makes this a bit easier.

https://github.com/skela/dbcore

这篇关于在iOS应用中将Dropbox Core和Sync API一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆