Search code examples
iosobjective-ciphonexcodeafnetworking

"AFNetworking.h" file not found in .pch file


I installed AFNetworking using cocoapods. And then I included AFNetworking.h file in Prefix.pch file. Now while building my app it shows "AFNetworking.h" file not found error. I think it's an error related to path.

Thanks.


Solution

  • This happened to me when I updated to AFNetworking 2.5.0 from 2.4.1 through Cocoapods.

    In XCode go to Product -> Scheme -> Manage Schemes. There delete the project (maintaining the pods) and add the project again. It worked for me.

    Hope it helps ;)