title: React Native iOS Release build stuck on old code but Debug build works fine
body: <p>When I try to build my React Native App from <code>XCode</code> in <code>Release mode</code> to check before launch it to production it get stuck in old code. No matter what change I do in my JS file that it won't do it. In Debug mode it doesn't happen, just works fine like it should. </p>
  
  <p>Example:</p>
  
  <p>I change a label in any of my JS files like a title of some menu and it will work when I use <code>react-native run-ios</code> or if I press on "Play" button of XCode if in the scheme "Debug" is checked. If instead, I check "Release" it charge an old version of my app I don't even know with certainly which version is.</p>
  
  <p>I have tried to launch to production but still being the old version.</p>
  
  <p>So, now a day I can't upload new version due to no matter what changes I do, the release mode ignores it.</p>
  
  <p>I have tried to generate a new <code>main.jsbundle</code>, I have cleaned build with <code>Shift + CMD + K</code> and I aso have reinstalled my <code>npm</code> with no solution. </p>
  
  <p>Do you have any idea?</p>
  
  <p>EDIT:</p>
  
  <p>Does the file "AppDelegate.m" have anything to do with it?</p>
  
  <p>This is my AppDelegate:</p>
  
  <pre><code>#import "AppDelegate.h"
  
  #import &lt;React/RCTBridge.h&gt;
  #import &lt;React/RCTBundleURLProvider.h&gt;
  #import &lt;React/RCTRootView.h&gt;
  
  @implementation AppDelegate
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
    RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
    RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                     moduleName:@"BottomNavigation"
                                              initialProperties:nil];
    rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
  
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    UIViewController *rootViewController = [UIViewController new];
    rootViewController.view = rootView;
    self.window.rootViewController = rootViewController;
    [self.window makeKeyAndVisible];
    return YES;
  }
  
  - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
  {
  #if DEBUG
    return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
  #else
    return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  #endif
  }
  
  @end
  </code></pre>