Error: ld: library not found for -lPods with CocoaPods

Also this may help:

  1. In your main project (not Pods) select the main target
  2. Go to the Build Phases tab
  3. Go to Link Binary with Libraries
  4. Remove the library that is causing the problem (it would probably be in red color)

Suggest trying the following, that worked for me:

a) Search from 'Library' from the Target Settings view and double-click to inspect the value of Library Search Paths

b) There are two values listed $(inherited) and $(PROJECT_DIR)/Pods/build/Debug-iphoneos. Delete the latter.

c) Do a full clean, build & run

d) Run pod install again. Notice that the entry is not restored.


Make sure you are opening the .xcworkspace file, not the .xcodeproj