Bitcode is now deprecated. It was used as a universal LLVM intermediate language to allow compliers to rebuild the bitcode into different architectures. It was required by Apple for submission of apps to the App store. However, with Xcode 14, it was depreciated and the App store will reject bitcode submission.
The complicated logic in the build script can now be removed to streamline the build process.