Update! I think moving the swiftPM cache anywhere inside the normal derived data will fix it, can you try? even if -derivedDataPath is set!
-clonedSourcePackagesDirPath ~/Library/Developer/Xcode/DerivedData/ANYFOLDER
3 Likes