UE5.3.2 failed to generate valid project files on Apple M2 Pro (Platfrom Mac is not a valid platform to build)

Below is my environment:

UE5 repo = 072300df18a94f18077ca20a14224b5d99fee872(tags/5.3.2-release)
macOS = 15.3.1 (24D70) @ Apple M2 Pro
xcode = Version 16.2 (16C5032a)

I’ve followed the instructions by the readme:

./Setup.command

./GenerateProjectFiles.command

And during generating the project files, there are lots of exception happens:

I’ve encountered the same problem before, and fixed them by changing versions in the Engine/Config/Mac/Mac_SDK.json and Engine/Config/Apple/Apple_SDK.json to match my system. However this time I don’t even find such files in the repo. Git status shows clean and Setup.command also show no errors.

Could somebody tell me how to fix the issue?