openssl binary files(libcrypto.a, libssl.a) don't have bitcode identifiers inside its binary. You cannot find any bitcode keywords, though you run below command.
$ otool -l libcrypto.a | grep __bitcode
# You can find bitcode keyword, if binary has bitcode.
# sectname __bitcode
# sectname __bitcode
# sectname __bitcode
How to Fix and What This PR do
In build.shconfigure() function does not embed CFlag -fembed-bitcode.
This PR adds -fembed-bitcode flag and updates openssl binary.
Information of updated Binary File
Binary files for iOS gets 3 times bigger than previous files.
I also thought it was strange that the size of the two was very different. However, I also tried building the openssl binary with OpenSSL for iPhone. And the results were not very different.
Found Issue
libcrypto.a
,libssl.a
) don't have bitcode identifiers inside its binary. You cannot find anybitcode
keywords, though you run below command.How to Fix and What This PR do
build.sh
configure()
function does not embed CFlag-fembed-bitcode
.-fembed-bitcode
flag and updates openssl binary.Information of updated Binary File
libcrypto.a
libssl.a