Unable to compile with Xcode, Unreal 4.26, Big sur

Just installed 4.26.1 and the above solution doesn’t seem to help.

The error is that it can’t find XCode which is in the app folder with nothing special.

XCode launches fine.

Unreal does not.