When I try to build my project, I get the following issue.
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Before the latest Xcode update, I was using OpenSSL via CocoaPods just fine. After the latest OS and Xcode update, I can't seem to be able to build OpenSSL.
Any ideas how to solve this? On Xcode 7 everything was working ok.
Found a solution, turns out, I needed to update the CocoaPods as well as my Pods.
For Mac OS X: pod 'OpenSSL-OSX'
Other versions of OpenSSL do not work.
I struggled with this for a long time. I finally fixed it by adding the following path to Build Settings: Library Search Paths
$(SRCROOT)/../../openssl-1.0.1s-MacOSX/lib
Your folder path is probably different. I pressed the plus button and dragged the lib folder from the OpenSSL folder to it.
I am sure I had tried this multiple times without success, but it seems to fix it now.
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