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,
Xcode Cloud temporary build environment doesn't include third party tools like CocoaPods. But you can include them using post clone script. Here are the steps if you are using CocoaPods.
Create a directory ci_scripts at the root of your project.
Add a file ci_post_clone.sh and save it in the ci_scripts directory.
Open Terminal and make your script executable be running chmod +x ci_post_clone.sh in ci_scripts directory.
Edit the ci_post_clone.sh in any text editor and copy the following.
# !/bin/sh
# Install CocoaPods using Homebrew.
brew install cocoapods
# Install dependencies you manage with CocoaPods.
pod install
Commit and push ci_post_clone.sh.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With