How to get rid of the “Loading from pre-bundled file” message?

前端 未结 2 1554
太阳男子
太阳男子 2021-02-04 10:46

After the launchscreen, but before app is loaded, there\'s a \"Loading from pre-bundled file\" message that appears at the top of the screen for just a few hundred milliseconds.

相关标签:
2条回答
  • 2021-02-04 11:39

    Change Build Configuration to release

    To disable the developer menu and therefore your mentioned message, you should change your Build Configuration to Release.

    For iOS open your project in Xcode and select Product → Scheme → Edit Scheme... (or press ⌘ + <). Next, select Run from the menu on the left and change the Build Configuration to Release.

    0 讨论(0)
  • 2021-02-04 11:46

    Also you can run this

    react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
    

    And then change in xcode class AppDelegate.m

     //jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
    
      jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
    
    0 讨论(0)
提交回复
热议问题