I am a total newbie to ios programming. Cloned a friends project. When trying to build (after resolving a lot of other errors), I get the following error:
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I checked the Pod file and searched for AFNetworking in the project, and it is there. Don't know what is going wrong.
also make sure you are running the .xcworkspace project (white icon),not the .xcodeproj project (blue icon)
The error message indicates that the library was not found.
Make sure that:
add $(inherited)
flag to LIBRARY_SEARCH_PATHS
at build settings
in Xcode target.
1.Remove Path from Other Linker flags 2.Clean the build 3.Run the code
please try to install COCOAPOD app in your mac.
Try to re attached AFNetworking here is the link please follow the instruction
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With