Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CCAvenue iOS kit integration kit

I am trying to integrate CCAvenue payment integration in iOS. They have given me two library files named: libcrypto.a and libssl.a

They have also given me some header files.

To implement this, they have mentioned that I should to setup header search paths and library search paths in the build settings.

I have set them both but I getting the following error:

ERROR : openssl/rsa.a file not found.

Can anybody help me step by step with copying these files to my project and setting up the proper path and flags if needed?

I am working with Xcode 7.0.1 and iOS 7.0+

like image 286
Pranav Avatar asked Oct 19 '15 06:10

Pranav


2 Answers

I 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

like image 52
SM18 Avatar answered Sep 18 '22 16:09

SM18


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:

  1. Delete old reference of from framework/build phases
  2. You will find 2 folders openssl/ and lib/ under Openssl/openssl-1.0.1i-iOS folder.
  3. Just drag drop each folder under Frameworks folder and DON'T FORGET TO CHECK COPY FILES IF NEEDED.
  4. Also under 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)
  5. Do 4th step for Search Paths->User Header Search Paths.remove and add same as 4th step.
  6. Compile you will find error gone.

I tested in Simulator working fine.

On Device

on device build was failed. To run on Device also.

  1. I set Enable Bitcode to NOunder Build Options for project
  2. Rebuild again and error gone.
like image 45
karan Avatar answered Sep 21 '22 16:09

karan