in Sources/XCRemoteCache/Dependencies/CachedDependenciesWriter.swift [41:53]
func generate(output: URL) throws {
if let template = templateDependencyFile {
try fileManager.spt_forceCopyItem(at: template, to: output)
return
}
// Generate the template file (happens only once)
let writer = factory(output, fileManager)
try writer.writeGeneric(dependencies: dependencies)
if fileManager.fileExists(atPath: output.path) {
// the file has been correctly created
templateDependencyFile = output
}
}