I had this with a third-party package I was trying to include and tried a few things to get around it but wasn't able to. I finally realized the package didn't need to be a dynamic library. Once I removed that from it's Package.swift file, it builds fine.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: