iOS 券商京东SDK接入附demo

it2025-10-20  6

最近对接京东券商SDK,总结一下。 1、注册京东APP的时候需要的是上架后的链接,如果链接不对是申请不成功的,只要审核通过的APP链接,提交申请就成功了。

2、下载对应京东SDK,复制APPkey和AppSecret,把SDK拉到项目中,注意是拉到bundle下面。要不会报错。 3、在Build Settings-----Other Linker Flags 中添加-ObjC,不然会报错

'/Users/mac/Documents/学习Demo/HBJDSdkDemo/HBJDSdkDemo/JDSDK.framework/JDSDK(KeplerApiManager.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

4、添加对应的库,注意,文档里没有写添加libc++.tbd库,会报错

Undefined symbols for architecture arm64: "operator new[](unsigned long)", referenced from: getlocalEid(char const*) in JDSDK(JDS_CPSNativeLevel.o) "___gxx_personality_v0", referenced from: +[JDS_CPSNativeLevel fetchLocalFinger:] in JDSDK(JDS_CPSNativeLevel.o) +[JDS_CPSNativeLevel checkLocalFinger:] in JDSDK(JDS_CPSNativeLevel.o) getKeyParams(unsigned char*) in JDSDK(JDS_CPSNativeLevel.o) genDKey(unsigned char*, int, unsigned char*, int, unsigned char*, int) in JDSDK(JDS_CPSNativeLevel.o) getKeyParamsCipher(unsigned char*, unsigned char*, int, unsigned char*) in JDSDK(JDS_CPSNativeLevel.o) encrypt(unsigned char*, int, unsigned char*, int, char*) in JDSDK(JDS_CPSNativeLevel.o) +[JDS_CPSNativeLevel localEidPackage:] in JDSDK(JDS_CPSNativeLevel.o)

5、报错

'/Users/mac/Documents/学习Demo/HBJDSdkDemo/HBJDSdkDemo/JDSDK.framework/JDSDK(KeplerApiManager.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

附上demo,demo有对应的京东接入文档

END.

最新回复(0)