Why XCODE is not always compiling and then executing the old build?

This issue is not very serious because if you clean the Build folder it compiles, BUT it bugs me. Description: I have a simple APP that runs on iPhone and on my MAC (M2) where I develop; sometimes (and I cannot say what triggers it) when hitting the "start the active scheme" arrow, it runs the old build without compiling even if I have made some changes. If you explicitly save the file modified it still does not compile, the only way you can get to "refresh" is by cleaning the Build folder. After many years developing with SWIFT and all the bugs we helped remove, I still concur with the other guys saying SWIFT is not a mature language/compiler/IDE.