[英]CCAvenue iOS kit integration kit
I am trying to integrate CCAvenue payment integration in iOS. 我正在尝试在iOS中集成CCAvenue支付集成。 They have given me two library files named:
libcrypto.a
and libssl.a
他们给了我两个名为库文件:
libcrypto.a
和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.错误:找不到
openssl/rsa.a
文件。
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+ 我正在使用Xcode 7.0.1和iOS 7.0+
I have achieved today only for IOS 9. To run just you need to download api from CCAvenue 我今天只为IOS 9取得了成功。要运行,你需要从CCAvenue下载api
We will Re Add by drag and drop openssl/
and lib/
folders 我们将通过拖放
openssl/
和lib/
文件夹重新添加
After downloading follow these steps: 下载后请执行以下步骤:
framework
/ build phases
framework
/ build phases
旧引用 openssl/
and lib/
under Openssl/openssl-1.0.1i-iOS
folder. Openssl/openssl-1.0.1i-iOS
文件夹下找到2个文件夹openssl/
和lib/
。 Frameworks
folder and DON'T FORGET TO CHECK COPY FILES IF NEEDED. Frameworks
文件夹下的每个文件夹, 如果需要,不要忘记检查复制文件。 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) Build Settings
下Search Paths
- > Library Search Paths
删除提供的内容Users/test/desktop/....
再添加$(PROJECT_DIR)再添加$(继承) Search Paths
-> User Header Search Paths
.remove and add same as 4th step. Search Paths
第4步 - > User Header Search Paths
。删除并添加相同的第4步。 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 project Build Options
下将Enable Bitcode
设置为NO
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 user pod 'OpenSSL-Universal' library which resolves my all Openssl dependancies 我有用户pod'OpenSSL-Universal'库,它解析了我所有的Openssl依赖项
Add below line in podfile 在podfile中添加以下行
pod 'OpenSSL-Universal' pod'OpenSSL-Universal'
hit command pod install from terminal 从终端命中命令pod install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.