在导入一些支付SDK时可能出现 'openssl/asn1.h'file not found 的错误

这是因为#include <xx.h> 是查找系统提供的头文件,但系统库并没有<openssl/asn1.h>
</br>
解决方法:
点击项目-> Build Settings -> 搜索Search Paths -> 找到Header Search Paths

</br>
双击添加两行内容:
$(inherited)
$(PROJECT_DIR)/项目文件夹名/SDK文件夹名/openssl/include

然后Command+N就能发现能编译过了
</br>
$(PROJECT_DIR) :项目的根目录
网友评论