We are integrating Github Actions to our project which uses Swift Package Manager. We want to update those swift packages from the CICD. We have tried using commands like xcodebuild -resolvePackageDependencies and xcodebuild -resolvePackageDependencies -project myproject.xcodeproj -scheme my scheme
But these commands are not working. Can someone please help on how to update the swift packages either from terminal command line or GitHub Actions?
Without error logs its hard to help, but the command xcodebuild -resolvePackageDependencies should work, just make sure you ran it on root directory.
As a workaround, for CI, you can specify the minimum version number on Project -> Package Dependencies. Seems working correctly for me. ✌🏻

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