Hello hszhsh,
Have you used any previous versions of UE4 and, if so, were you able to create code projects in those versions? Also, could you try navigating to the project folder, opening the workspace file and compiling directly in XCode? I’m curious to see if you get any different output from there. I’m assuming this message you gave was from the window that pops up after the project creation fails.
Could you also try making a new blueprint project and then adding a new C++ class to it to see what the results are there?