当我将我的 iOS 项目切换到发布架构时(如 https://facebook.github.io/react-native/docs/running-on-device.html 所述),我收到此错误:
2016-11-29 11:49:01.621 [fatal][tid:main] No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.unsanitizedScriptURLString:((null))
我需要在生产模式下创建静态 js 包吗?文档建议在早期的 React Native 文档中,但我运行的是 React Native 0.35(最初是 0.30)
最佳答案
终于解决了我的问题。我正在使用 babel 插件删除 console.log 语句,正如 docs 所建议的那样.删除插件让一切恢复正常
关于ios - 无法在发布架构中运行 iOS React Native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40874650/