Search code examples
iosswiftcicdswift-package-managerxcode-cloud

How to fix Xcode cloud build issues generated for third party libraries added through SPM?


I'm deploying my app using Xcode Cloud. I'm using SPM for libraries & I'm getting this issue (as screenshot attached) in the Xcode cloud. My build has succeeded in the code but is failing in the Xcode cloud.

Please help me to out this issue.

Xcode Cloud SPM errors


Solution

  • Check: Xcode cloud might be building with a preview or a release candidate version.

    In XCode cloud:

    • Select your app
    • Select "Manage Workflows".
    • Select a workflow
    • Change Xcode version to a stable version (currently Xcode 15.2)

    This solved the issue for me