leenjewel / openssl_for_ios_and_android

OpenSSL Library for iOS and Android
920 stars 317 forks source link

ios 编译版本后 lipo info 发现libcrypto.a仅支持x86_64架构,能帮忙看下是build-openssl4ios.sh哪里设置错了吗? #40

Open zhoujian12 opened 5 years ago

zhoujian12 commented 5 years ago

ios 编译版本后 lipo info 发现libcrypto.a仅支持x86_64架构

Non-fat file: /Users/zhoujian09/Downloads/ChinaCrptoOpenssl/openssl_for_ios_and_android-master/tools/openssl-1.1.1b/libcrypto.a is architecture: x86_64

dourgulf commented 5 years ago

If you can't compile with this version, please modify the version to it which on your mac.

SDK_VERSION=""12.1"" 这里要改到跟你系统的SDK版本一致。 用xcodebuild -showsdks可以看到你自己系统的SDK版本。

dourgulf commented 5 years ago

我提交了一个PR,检查这个SDK_VERSION的设置,如果不正确的话,打印一个错误提示,并显示一个查询系统SDK版本的结果出来。