Compiling issues on a Mac

Hi everyone, I’m having an Issue with one of the projects I have. It was created on a Windows computer and using build 5.1. On Windows it works like a charm, but when I try opening it on the Mac M1 (os version is 14.1.1 and using Xcode 15.0.1), the project doesn’t works. It ask’s to rebuild missing modules (and I press Yes for that) and after that, I got an error saying that the uproject could not be compiled and to try to rebuild it manually. Any ideas on what could be the solution for this?

Update: when opening with 5.3.2, it worked.