简体   繁体   English

如何将AFNetworking 2.0+与旧的AFNetworking一起使用?

[英]How to use AFNetworking 2.0+ with old AFNetworking?

In my project I have RestKit and IDMPhotoBrowser (using Cocoapods), so there is two versions AFNetworking conflict among themselves. 在我的项目中,我有RestKitIDMPhotoBrowser (使用Cocoapods),因此它们之间存在两个版本AFNetworking冲突。 Do you have any idea how to use them both in same project? 您是否知道如何在同一项目中同时使用它们?

There is no way to use 2 libraries with the same classes in the same project. 在同一项目中,无法使用具有相同类的2个库。 This is what leads to duplicate symbol errors. 这就是导致重复的符号错误的原因。 On the topic of RestKit + AFNetworking this has been brought up a few times. 关于RestKit + AFNetworking的话题已经提出了几次。 There's another StackOverflow question , there's tons of issues but it sounds like they want to remove AFNetworking as a dependency entirely (from here ). 还有另一个StackOverflow问题 ,有很多问题,但是听起来他们想完全删除AFNetworking作为依赖项(从此处开始 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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