Same issue in Xcode 13.3.1.
LLVM ERROR: out of memory
Allocation failed
Solution:
Build Settings -> Enable Bitcode (No)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: