CocoaPods UIImageView+AFNetworking.h unrecognized selector setImageWithURLRequest

房东的猫 提交于 2019-12-03 07:11:46

I had the same problem with Xcode 5, Cocoapods and AFNetworking 1.3.3.

I found my answer in this Google Groups discussion: AFNetworking unrecognized selector

Make sure your project and target settings aren't overwriting the values in the xcconfig file.

Each level should have (at least) $(inherited) to inherit the settings of the parent.

In Build Settings, make sure you have $(inherited) in Other Linker Flags.

Build Settings before I added $(inherited) (choose Levels, not Combined):

Build Settings after I added $(inherited):

That fixed it for me.

I had the same problem and the above solutions didn't fix it. It was a stupid mistake. I only included the .h, instead of both .h and .m

Check the PodFile. May be it is setting the instlalation "pod 'AFNetworking', '~> 3.0'" for another target.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!