CCAvenue iOS套件集成套件 [英] CCAvenue iOS kit integration kit
问题描述
我正在尝试在iOS中集成CCAvenue支付集成。他们给了我两个名为的文件库: libcrypto.a
和 libssl.a
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:
错误:
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?
我正在使用Xcode 7.0.1和iOS 7.0 +
I am working with Xcode 7.0.1 and iOS 7.0+
推荐答案
我今天只为IOS 9实现了。要运行只需要从 CCAvenue
I have achieved today only for IOS 9. To run just you need to download api from CCAvenue
我们重新添加通过拖放 openssl /
和 li b /
文件夹
下载后请按照以下步骤操作:
After downloading follow these steps:
- 删除
框架的旧引用
/构建阶段
- 您将在
Openssl / openssl-1.0.1i-下找到2个文件夹
文件夹。openssl /
和lib /
iOS - 只需拖放
Frameworks
文件夹下的每个文件夹,然后不要忘记如果需要,请检查复制文件。 - 同样在
项目的构建设置
下去搜索路径
- >库搜索路径
删除提供的内容Users / test / desktop /....
并添加$(PROJECT_DIR)再次添加$(继承) - 执行第4步
搜索路径
- >用户标题搜索路径
。删除并添加相同的第4步。 - 编译你会发现错误消失。
- Delete old reference of from
framework
/build phases
- You will find 2 folders
openssl/
andlib/
underOpenssl/openssl-1.0.1i-iOS
folder. - Just drag drop each folder under
Frameworks
folder and DON'T FORGET TO CHECK COPY FILES IF NEEDED. - Also under
Build Settings
of project go forSearch Paths
->Library Search Paths
remove what is providedUsers/test/desktop/....
and add $(PROJECT_DIR) again add $(inherited) - Do 4th step for
Search Paths
->User Header Search Paths
.remove and add same as 4th step. - Compile you will find error gone.
我在模拟器中测试工作正常。
在设备上
设备构建失败。也可以在设备上运行。
on device build was failed. To run on Device also.
- 我设置
启用Bitcode
到否
项目的构建选项
项目 - 重新重建并且错误消失。
- I set
Enable Bitcode
toNO
underBuild Options
for project - Rebuild again and error gone.
这篇关于CCAvenue iOS套件集成套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!