I'm developing a static library which is distributed to a number of developers. Now I faced the problem with bitcode generation. When I include this library to xcode project and try to archive it, linker produces an error
MyModule.o does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
I tried all possible things (from here and from here) and nothing helped. Host project remains unarchivable while the bitcode flag is enabled.
Strange thing is that otool -l
command says that all modules include a bitcode section. Why xcode project can not be archived then?