Command MergeSwiftModule failed with a nonzero exit code (Xcode12.5.1)

error:
Command MergeSwiftModule failed with a nonzero exit code
MergeSwiftModule normal arm64 (in target ‘xxxx’ from project ‘Pods’)

<unknown>:0: error: circular reference
<unknown>:0: note: through reference here
<unknown>:0: note: through reference here
<unknown>:0: note: through reference here
<unknown>:0: error: circular reference
<unknown>:0: note: through reference here
<unknown>:0: note: through reference here
<unknown>:0: note: through reference here
Command MergeSwiftModule failed with a nonzero exit code

Steps To get fixes of these errors:

SWIFT_COMPILATION_MODE

forums

Read More: