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.
source share