I'm still working on version 1.0.0 of my app so don't yet need to migrate swiftdata versions. I renamed my data model(s) but I get this error when running the app after changing the name of the model from SectionsSD to HelpSection
error: the replacement path doesn't exist: "/var/folders/fk/m2x_2qzj44508m9zzcll2j_w0000gn/T/swift-generated-sources/@__swiftmacro_11OpExShellV112FilteredListV11helpSection5QueryfMa_.swift"
Despite cleaning the build, deleting the derived data and deleting the app and data on the simulator (and resetting it) I still get the replacement path error whenever I run the app in the simulator.
When I run this code against the model I get the error:
@Query var helpSection: [HelpSection]
let searchString: String
let isExpanded: Bool
var filteredSections: [HelpSection] {
helpSection.filter { section in
section.toArticles?.contains { $0.search.contains(searchString) } == true
}
.sorted { $0.rank < $1.rank }
}
deleting derived data, cleaning builds and restarts do not resolve the issue.