ld: library not found for -lAFNetworking xcode
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:
- You see the AFNetworking in your Pods directory.
- Your Pods directory is in the search paths. Go to the project -> Build Settings -> Search for 'search paths' and make sure that your Pods directory is there. You can add it by adding "${PROJECT_DIR}/Pods" for example.
add $(inherited)
flag to LIBRARY_SEARCH_PATHS
at build settings
in Xcode target.