I got an error when archiving a project. This is my environment.
The project deployment target is:
IPHONEOS_DEPLOYMENT_TARGET 3.2
The error shows:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I guess Pods is CocoaPods that I used to manage XCode project dependencies. https://github.com/CocoaPods/CocoaPods
This is my Podfile
platform :ios
dependency 'libPusher', '1.1'
I am not sure what the error means?
Are you opening the workspace (that was generated by CocoaPods) instead of the xcodeproj?
I separated the app and the test targets in the Podfile by using
target :App do
…
end
target :AppTests do
…
end
This resulted in two new products libPods-App.a and libPods-AppTests.a, respectively and they made the previous product libPods.a obsolete. I had to remove this product from the Link Binary With Libraries Section of the Build Phases configuration of both targets.
I ran into a similar problem today.
Preview
along with the existing Debug
and Release
Now when compiling on this new Preview
configuration, the compiler would not be able to link with Pods and giving me this message:
ld: library not found for -lPods
What I had to do was to run
pod install
again and thus configuring cocoapods for the new Preview
configuration. It updated my project, the workspace and the Pod's project file and the problem disappeared
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With