I have the same problem.
I'm using Macbook Pro M1 2021
Showing All Errors Only
Build target PurchasesCoreSwift of project Pods with configuration Debug
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'PurchasesCoreSwift' from project 'Pods')
Command CompileSwiftSources failed with a nonzero exit code
Destination iPhone 13 Pro Max | SDK Simulator 15.2