How set an enviroment variable to false when i compile on iOS

Hi, i have an app into Ionic who opens an InAppBrowser object with a certain web of my own.

If i compile this app on iOS if i capture an image gives an error allocated memory blabla and then it crashes, but if i config in XCODE this variable (on environment variables) to false doesn’t crashes.

This works when i compiles on XCODE (debug mode) but if i launch the app without XCODE (in dev mode i supposse) the app crashes.

There are any way to config this variable to false if i have the app in prod mode?

Thanks in advance