I\'ve installed cocoa pods library and some frameworks through it. Now when I compile project the build fails.
Error: ld: library not found for -lPods-Project clang:
I've had this error after adding a new build configuration.
pod install
helped, because it adds separate settings for each build configuration.
Check your Project -> Targets -> Build Phases -> Link Binary With Libraries
Fixed it by deleting the -lPods-Projectname.a
in Link Binary (for newer versions, delete the -lPods-Projectname.a
under the Frameworks group).
The exact location that you should remove your libs is at:
I experienced a similar error which affected one of my computers but not the other when compiling the same project.
I reinstalled cocoapods, all gems, rebuilt the project and none of it worked. I finally got it to compile but required me to completely remove Xcode and related data (iPhone simulator, DerivedData) then reinstall Xcode.
Go to Product > Scheme > Edit Scheme... > Build > + > Add the Pods-Projectname.a and drag it to the top > Clean & Build your project.