-1

I have to use version 1.x and 3.0 of AFNetworking in same project. i went through with the questions on SO.

Using two versions of afnetworking

Two Versions in same class

But the problem is I don't understand the answer.

Community
  • 1
  • 1
Priyanta Singh
  • 77
  • 1
  • 12

2 Answers2

0

This is not possible: if you want to include multiple version of the same framework in the same project you end to cause duplicate symbol errors. To make an example of AFN, RestKit depends on AFN 1.x while another library you want to use requires 3.x. You won't be able to use both of them in the same class.

To more information take a look to the 3.x requirements.

And you could look here to know (AFNetworking-3.0-Migration-Guide) the differences between versions.

Alessandro Ornano
  • 34,887
  • 11
  • 106
  • 133
0

I think you should rename one version of them. Rename AFNetwork to BFNetwork or do something like that.

Psytho
  • 3,313
  • 2
  • 19
  • 27