Afnetworking: library not found for -lAFNetworking

Created on 4 Dec 2015  路  8Comments  路  Source: AFNetworking/AFNetworking

I tried to install AFNetworking as a Pod with Cocoapods v0.38.2 but XCode always shows me this error

ld: library not found for -lAFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is not the first time that I try to use AFNetworking. Infact some time ago it worked perfectly but from some days it started to give me that error because i reinstalled the pods running command

pod install

Maybe the problem is not the AFNetworking but something on my project settings, but I didn't change anything.
Can someone help me?

needs more information

Most helpful comment

its because of use_framework.

All 8 comments

What version of Xcode are you using? This is most likely a Cocoapods issue, not an AFNetworking issue.

Can you push up an example to Github demonstrating the problem? Does it work for fresh project?

I have the same problem with XCode 7.1 and XCode 6.4.
It seems like cocoapods issue as you said or maybe something setted wrong on my project.
What can determinate this error?

I'd go down the troubleshooting steps of cocoapods version checking, installing it in a clean project, reviewing project settings, etc. This issue falls outside the scope of the AFNetworking project, so I am going to close this one out. I'd recommend directing your question to forum more suited for support, like StackOverflow. We use the issues list on Github for tracking bugs and feature requests directly related to AFNetworking.

:beers:

Did you find a solution for this problem? Im also facing the same issue

Not yet. I tried to install AFNetworking pod with varius version of cocoapods but nothing solve my problem. I'm starting to think maybe it depends from versione of iOS target version of my application, but I can't change it because i need it to run from specific version of iOS.
Have you any ideas @gholias ?

No and it is really frustrating...
I think I will have to add AFNetworking without cocoapods

its because of use_framework.

manpreetg <---------- He is right!!!-----------> it`s because of use_framework.

Was this page helpful?
0 / 5 - 0 ratings