I had the same issue and in the XCode preferences the version was selected properly as well. After I selected the version manually anyway (just selected the version from the dropdown, which was already selected) Unreal Editor was able to find XCode and launched. A silly glitch it seems.