At my work place they have proposed a solution for GraphQL and they have written their custom script to generate the classes. I am not sure if this is the approach to have it Xcode > Build Phases to generate these files.
Questions:
Is it better to use a tool to generate the classes outside of the project and just use the generated classes in the project (or is it better to have it in Xcode > Build Phases)?
Is there a completely different approach that is possible using result builders or any of the other swift features to make it strongly type by accepting a JSON?