Shourob Datta
Shourob Datta

Reputation: 31

AFNetworking.h file not found When project remove another mac

I am using AFNetworking via Cocoapods. Here is the version of the AFNetworking :

pod 'AFNetworking', '~> 2.0'

The project currently runs on my working Mac. But when I move to project on another Mac I see this error.

AFNetworking.h file not found error

in AFHTTPRequestOperationManager.h class.

Upvotes: 3

Views: 1623

Answers (1)

Shourob Datta
Shourob Datta

Reputation: 2092

Remove the followings .

Pods folder , Podfile.lock , Projectname.xcworkspace

write

 pod 'AFNetworking', '2.0'

instead of

 'AFNetworking', '~> 2.0'

in your podfile .

then install the pod again .

Upvotes: 2

Related Questions