Even if I build my JS bundle in with prod config, and then archive for the iOS build in Debug mode, the resulting .ipa file when installed always searches for a local server. I need to run in Debug, cos I use a different bundle identifier in non prod environments and have some 3rd party deeplinks configured in lower environments with the debug app identifier. So is there a way I can build the app in a way that it doesn't try to search for a local server.
The work around I use now...Right now I turn my internet data/wifi off for JS code to load from the local metro bundle, then turn data on, to continue using the app. And then if configure bundler to not use the local bundler, code starts loading from the local bundler every time I relaunch. But is there a way I don't have to do these work arounds and make the app depend on local bundle in Debug variant?