使用 bitcode 构建 openSSL

Roe*_*e84 6 openssl ios

我正在尝试使用 bitcode 构建 openSSL 1.1.0。

在我定义的 makefile 中

CC= $(CROSS_COMPILE)clang -fembed-bitcode
Run Code Online (Sandbox Code Playgroud)

但后来我得到了错误

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

没有位码,它运行良好。

如何使用位码支持构建它?

Roe*_*e84 2

好吧,最终使用这个脚本来做到这一点 - https://github.com/x2on/OpenSSL-for-iPhone