How add Build Phases Run Script Phase

I need to run a script during the ios build,
like this https://stackoverflow.com/a/60494271

how to configure my project, app flow to do that ?