如何摆脱“从预捆绑文件加载"信息? [英] How to get rid of the "Loading from pre-bundled file" message?
问题描述
在启动屏幕之后,但在加载应用程序之前,屏幕顶部会显示一条从预捆绑文件加载"消息,仅持续几百毫秒.我在开发中不介意这个,但我在手机上运行时仍然看到这条消息.这是我创建捆绑包的方式.有任何想法吗?谢谢.
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. I don't mind this in development but I still see this message while running on my phone. Here's how I created the bundle. Any ideas? Thanks.
react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output App/main.jsbundle --resetCache
推荐答案
更改构建配置以发布
要禁用开发者菜单,因此您提到消息,您应该将 Build Configuration
更改为 Release
.
Change Build Configuration to release
To disable the developer menu and therefore your mentioned message, you should change your Build Configuration
to Release
.
对于 iOS,在 Xcode 中打开您的项目并选择 Product → Scheme → Edit Scheme...(或按 ⌘ + <).接下来,从左侧菜单中选择 Run 并将 Build Configuration 更改为 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.
这篇关于如何摆脱“从预捆绑文件加载"信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!