Unreal Engine 4.25.4 Legacy Build Error

I have a project that run on Unreal Engine 4.25.4 and recently encountered a legacy build error after upgrading both the MacOS and Xcode due to Apple requirement by April 25. Due to the way the project was design, it’s difficult to migrate it to version 4.27. I tried changing the build to latest in workspace setting and editing Engine/Source/Programs/UnrealBuildTool/ProjectFiles/Xcode/XcodeProjectFileGenerator.cs to build latest but i still encounter the error. So I was wondering whether there’s any solution for this legacy build error.

Thanks in advance.