One small comment in addition to previous Egor’s message - there should be one more option for cmake command line added - -DCMAKE_CXX_FLAGS="-fembed-bitcode-marker"
One small comment in addition to previous Egor’s message - there should be one more option for cmake command line added - -DCMAKE_CXX_FLAGS="-fembed-bitcode-marker"