Hi there,
Currently we are developing a dynamic library written in C++, target to run on arm64 ios. Things become wired when we try to archive the final project. It says,
bitcode bundle could not be generated because 'the_path_to.dylib' was built without full bitcode.
Some brief arch of this project lists below,
- we use cmake and this toolchain to build this dylib. It has an argument named ENABLE_BITCODE. It would append -fembed-bitcode to C_FLAGS & CXX_FLAGS. BTW, we use clang & clang++ as C and C++ compiler.
- this dylib has several dependencies, such as libcurl, libffi. We download them from vcpkg then build with bitcode enabled.
As mentioned above, running it directly on the phone works as we expected. But we can't archive it.
using otool -l the_path_to.dylib | grep bitcode
shows nothing.
We still want to make it support bitcode feature.
- Is there anything we miss to do to enable this? About bitcode, is there anything to learn?
- Is there an accurate way to find out that the dylib support bitcode or not?
Thanks in advance.