Do2
Do2

Reputation: 1791

RMStore openssl/pkcs7.h file not found

I am trying to use RMStore in order to verify the receipts locally. I have followed the instructions in order to add static ssl libaries: https://github.com/robotmedia/RMStore/wiki/Receipt-verification#adding-openssl

Transfered the 4 files, i downloaded binaries and headers.

1.In Build Phases, add libssl.a and libcrypto.a to Link Binary With Libraries.

2.In Build Settings, add the headers folder to the Header Search Paths.

At the second step above is where the issue exists(i think). At the moment the header search path is

   $(PROJECT_DIR)/RMStore/Optional/openssl-1.0.1e/include

and the library search path:

   $(PROJECT_DIR)/RMStore/Optional/openssl-1.0.1e/lib

Am i supposed to replace "RMStore" with my projects name? Where am i going wrong?

Also a side question(but relevant to openssl), when submitting to the App store, what do i answer to the "Is your product designed to use cryptography or does it contain or incorporate cryptography?" question? Do i have to apply for confirmation approval?

Upvotes: 3

Views: 2290

Answers (3)

akonoplev
akonoplev

Reputation: 79

Just add $(PROJECT_DIR)/OpenSSL/include to Header Search Paths of Build Settings

OpenSSL Folder must be in root directory

enter image description here

Upvotes: 2

zdravko zdravkin
zdravko zdravkin

Reputation: 2386

If you add folder OpenSSL to your project, and all files for OpenSSL will be there. Add OpenSSL folder to the top of your Project (not in subfolders)

$(PROJECT_DIR)/OpenSSL/include    -   Header Search Paths
$(PROJECT_DIR)/OpenSSL/lib        -   Library Search Paths`

Upvotes: 3

Do2
Do2

Reputation: 1791

I separately installed openSSL via cocoapods and that solved my issue. I used this one: https://cocoapods.org/pods/OpenSSL-Universal

but there are others available as well...

Upvotes: 3

Related Questions