Cleaning and rebuilding fixes this for me. However, the error happens on every subsequent build after that. So, my incremental dev process has changed from "edit code then run the app" to "edit code, clean the project, then run the app"
Xcode Version 14.3 (14E222b)
macOS Ventura Version 13.3 (22E252)