UE 5.6 doesn't compile with Xcode 15.4 on macOS

This seems like a macOS sdk path issue, can you try just compile any c++ code in a brand new xcode project? (No UE involved)

We recommend installing past xcode versions through Apple official site: