Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find file AFJSONRequestOperation.h with AFNetworking and AFOAuth2Client

I am using cocoapods to install AFNetworking and AFOAuth2Client. The issue is that it can't import a header file, AFJSONREquestOperation. I have no idea where this dependency lies. Is it another pod or extension to AFNetworking?

like image 884
Justin Griffith Avatar asked Oct 29 '13 18:10

Justin Griffith


1 Answers

It depends of you installed AFNetworking 2.x version, but AFOAuth2 used 1.x version (the latest 1.x is 1.3.3)

If you used Cocoapods, just write in pod file pod 'AFNetworking', '1.3.3' and than run "pod install"

like image 141
LIAL Avatar answered Oct 06 '22 16:10

LIAL