I have errors with Xcode Cloud testing while archiving. Issues are all related to CocoaPods dependencies:
unable to open file (in target "Alamofire" in project "Pods")
missing module map file: '/Volumes/workspace/repository/Pods/Target Support Files/Alamofire/Alamofire.modulemap
Looks like Pods are not being installed on archiving. It works well locally.
Best,
The answer is here for CocoaPods, Carthage or SPM :
Use a custom build script to install a third-party dependency or tool