Sourcery icon indicating copy to clipboard operation
Sourcery copied to clipboard

Error: "xxxx" couldn’t be removed.

Open ssly1997 opened this issue 2 years ago • 2 comments

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!

ssly1997 avatar Jan 29 '23 01:01 ssly1997

try nuking the cache

krzysztofzablocki avatar Jan 30 '23 11:01 krzysztofzablocki

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

ssly1997 avatar Jan 31 '23 01:01 ssly1997

Thank you for reporting, @ssly1997 👍🏻 might help someone one day 🤝

art-divin avatar Mar 29 '24 00:03 art-divin