Xcode Cloud fails to archive an app

When running my "Internal Testing" workflow, which basically archives the app and uploads it for internal TestFlight Testing, it fails with the following error:

Package.resolved file is missing from the repository

I'm using Swift Packages to add 3 dependencies to the Xcode project. All of them are open source and available on GitHub.

I don't see any Package.resolved file locally, so I can't commit it. Swift Packages are managed via Xcode.

Answered by enric in 683679022

For future reference, my .gitignore included Package.resolved, so that file wasn't being pushed to git. Removing it from .gitignore fixed the issue.

Accepted Answer

For future reference, my .gitignore included Package.resolved, so that file wasn't being pushed to git. Removing it from .gitignore fixed the issue.

Hey, was facing the same issue. I removed Package.resolved from my .gitignore and pushed my Package.resolved to github. Yet xcode cloud still throws Package.resolved is missing from the repository. Anyone else facing this issue?

Xcode Cloud fails to archive an app
 
 
Q