Save SPM Cache step issue

I’ve added the save SPM Cache/restore SPM Cache steps to my workflow but noticed that nothing is actually getting cached.

At the save cache step I see a message saying:

No match for path pattern: ~/Library/Developer/Xcode/DerivedData//SourcePackages**

The provided paths are all empty, skipping compression and upload.

So it seems its not finding the folder it needs to cache in DerivedData… It definitely exists locally. Any thoughts what has gone wrong here?

Update - I remote logged in to the build, and ~/Library/Developer/Xcode/DerivedData/ does not exist. So I guess the DerivedData folder is somewhere else? Note this is a M1 stack if that makes a difference.

~/Library/Developer/Xcode does exist, but it only contains a folder called UserData.

Hey @swwol, what kind of project do you run in CI? Is it a full Xcode project or just a pure Swift package? A build URL with support access enabled would be helpful in debugging this.

Thanks Oliver, actually I’ve found the issue now… it turns out we are using a custom DerivedData location that is set using fastlane.