Sourcery
Sourcery copied to clipboard
Error: "xxxx" couldn’t be removed.
I get error like this:
Error Domain=NSCocoaErrorDomain Code=4 "“.dat.nosync443c.LMWri6” couldn’t be removed." UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/var/folders/37/y4d73y891yb866bppdpjf59w0000gn/T/SwiftTemplate/1.8.1/Sources/SourceryRuntime/.dat.nosync443c.LMWri6, NSUnderlyingError=0x6000003195f0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}No config file provided or it does not exist. Using command line arguments. Scanning sources... Found 8 types in 5 files, 0 changed from last run. Loading templates... Loaded 1 templates. Generating code... error: Error Domain=NSCocoaErrorDomain Code=4 "“.dat.nosync443c.LMWri6” couldn’t be removed." UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/var/folders/37/y4d73y891yb866bppdpjf59w0000gn/T/SwiftTemplate/1.8.1/Sources/SourceryRuntime/.dat.nosync443c.LMWri6, NSUnderlyingError=0x6000003195f0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
I want to know how to fix it, thanks!
try nuking the cache
I tried, but it didn't work. Finally, I rolled back the code with the time machine. I'm not sure whether this is related to I set up output_files in the XCode sourcery script
Thank you for reporting, @ssly1997 👍🏻 might help someone one day 🤝