I have a build and release pipeline working pretty well for iOS app (react native), the problem is that as IPA is a "binary" file, I have to replace endpoints for each environment on my build pipeline, which I think is not right, because this way I have to implement 3 build (one for each enviroment "dev, staging, production).
Is there a way to build the IPA and on release pipeline unpack the IPA, replace the endpoints and the repack it?
I could see that IPA is just like a zip file and my endpoints is inside a main.jsbundle. Can I just unzip, replace and zip it back? What about provisioning profiles? signing?
I really appreciate any help