I am having difficulty adding openssl to an iOS project for receipt validation. XCode 7.2.1, Swift.
For convenience, I am using the latest build of openssl posted on the Receigen site, openssl-1.0.2f-iOS. I have set the user search paths to the include folder pathway, and have added the libcrypto.a library to "Linked Frameworks and Libraries" in the project settings. When I do this, I get the following error during build:
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have followed the exact same procedure for adding openssl to OSX projects without encountering this error.
I have spent a few hours searching the web for a solution. I have tried several without success, including:
- Disabling bitcode.
- Altering the "Build Active Architecture Only" setting.
- Deleting the files in the DerivedData folder.
- Cleaning the project.
- Rebooting.
What am I overlooking? Any help would be most appreciated.