I am trying to integrate CCAvenue payment integration in iOS. They have given me two library files named: libcrypto.a
and libssl.a
They hav
I have resolve error by using following steps.
Step 1:- Download CCAvenue iOS SDK https://www.ccavenue.com/inapp_payments.jsp
Step 2:- Delete old reference of from framework/build phases and Clean your app.
Step 3:- You get 2 folders openssl/ and lib/ under Openssl/openssl-1.0.1i-iOS folder.
Step 4:- Copy that folder "openssl-1.0.1i" in your project.
Step 5:- Drag and drop include and lib folder under Frameworks folder and DON'T FORGET TO CHECK COPY FILES IF NEEDED.
Step 6:- In User Header Search Paths write these line. /Users/YOUR_SYSTEM_USER_NAME/PROJECT_SAVED_LOCATION/APP_NMAE/openssl-1.0.1i/include || for example my location is "/Users/CharlePrabhat/Desktop/TestApp/Openssl/include"
Step 7:- Clean and compile you will find everything is fine.
I have tested on my device its perfect running. Hope it will help you.
I have achieved today only for IOS 9. To run just you need to download api from CCAvenue
We will Re Add by drag and drop openssl/
and lib/
folders
After downloading follow these steps:
framework
/build phases
openssl/
and lib/
under Openssl/openssl-1.0.1i-iOS
folder.Frameworks
folder and DON'T FORGET TO CHECK COPY FILES IF NEEDED.Build Settings
of project go for Search Paths
->Library Search Paths
remove what is provided Users/test/desktop/....
and add $(PROJECT_DIR) again add $(inherited)Search Paths
->User Header Search Paths
.remove and add same as 4th step.I tested in Simulator working fine.
On Device
on device build was failed. To run on Device also.
Enable Bitcode
to NO
under Build Options
for projectI have user pod 'OpenSSL-Universal' library which resolves my all Openssl dependancies
Add below line in podfile
pod 'OpenSSL-Universal'
hit command pod install from terminal