I get these errors when I try to build an iOS application.
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to s
In a project with multiple targets I had the same issue after changing the Scheme and App name and tried to update pods. The issue was caused because of multiple entries in Build Phases -> Link Binary with Libraries where both the previous .a library and the current one was listed, while the previous one was not existing anymore. Removing the library from there cleared the problem.
My problem had fixed by the following config:
Build Active Architecture Only: YES
My way
create new project and install pod it will can run without error.
Copy text in "Other Linker Flags" in new project to old project. Make old project to same new project.
Check "Header Search Paths" too.
If the project uses CocoaPods be aware to always open the .xcworkspace
file instead of the .xcodeproj
file.
If you have multiple targets in your project, Cocoapods may have only integrated itself well with just one of them.
I had to manually link to libPods.a
in "Link Binary With Libraries" for each additional target I had.
Had this problem as well. Something was wrong with my CocoaPods installation. No pods other than KIF were installing properly. I followed the comments on this thread to be of help.
Basically, I needed to ensure that Build Active Architectures Only
settings for both my project and the Pods project were equal.