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:
Make sure Build Active Architectures Only
in your Project/Target and in your Pod/Target and Pod are the same.
We often set the debug yes and set the release no.
You can try "Build Active Architecture Only" = YES . it may be solving problem.
I had a very different experience. I tried removed the library from build settings to no avail. And honestly, I couldn't see the logic behind it.
What I did was try a new pod install
. And so it gave me this error
[!] The ProjectName [Debug] target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-/Pods-.debug.xcconfig. This can lead to problems with the CocoaPods installation - Use the
$(inherited)
flag, or - Remove the build settings from the target.[!] The ProjectName [Release] target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-/Pods-.debug.xcconfig. This can lead to problems with the CocoaPods installation - Use the
$(inherited)
flag, or - Remove the build settings from the target.
So I did what it told me to, I added the $(inherited)
flag to build settings. And all worked well
I had this problem when I accidentally opened project instead of workspace so Cocoapods where missing....
Point to your Pods project, set the BaseSDK to iOS SDK since 'pod install' process clear it. Also set Build Valid Architecture Only to NO That should work.
Whenever I execute "pod install" it leads me to spend several hours of fixing something related with it. So, I deleted CocoaPods stuff and do not have problems any more! Now I am lucky and happy man.