Xcode 8 and "ld: library not found for -lcrypto"

When I try to create my project, I have the following problem.

ld: library not found for -lcrypto clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Until the last Xcode update, I used OpenSSL perfectly through CocoaPods. After the last OS and Xcode update, I cannot build OpenSSL.

Any ideas how to solve this? On Xcode 7, everything worked fine.

+5
source share
2 answers

The solution found, it turned out, I needed to update CocoaPods, as well as my Pods.

For Mac OS X: pod 'OpenSSL-OSX'

Other versions of OpenSSL do not work.

+3
source

I struggled with this for a long time. I finally fixed this by adding the following path to the build settings: library search paths

$ (SRCROOT) /../../ OpenSSL-1.0.1s-MacOSX / Library

Your folder path is probably different. I clicked the plus button and dragged the lib folder from the OpenSSL folder.

I'm sure I tried this several times without success, but now it fixes it.

+1
source

Source: https://habr.com/ru/post/1258098/


All Articles