CoreData: error: Failed to create directory file:///Users/rick/Library/Application%20Support/Benchmarks: NSCocoaErrorDomain (513)
CoreData: fault: Unhandled exception finding default Directory URL '+[NSPersistentContainer defaultDirectoryURL] Could not conjure up a useful location for writing persistent stores.'
https://github.com/vanvoorden/2024-08-26
I am running into these errors when attempting to run a benchmark on a SwiftData context from the 2024-08-26
repo. The errors seem to be harmless… the benchmark continues without crashing on those unhandled exceptions.
https://github.com/vanvoorden/2024-08-02/
I seem to have no problem running against SwiftData from a different Swift Package Executable (2024-08-02
). This package seems to build and run with no errors. This package also creates the expected directory under ~/Library/Application%20Support/2024-08-02
.
I don't yet completely understand what is happening… but there seems to be some reason why Benchmarks is failing to create that extra directory under Application%20Support
.
I can also run Benchmarks with no errors after I add the Application%20Support/Benchmarks
directory manually from mac Finder.
The benchmarks seem to be running correctly even after printing those errors… so I am not sure if there is anything important to fix in the Benchmarks package for now.