【问题标题】:How do I install a React Native application on my device without the development server and debugging?如何在没有开发服务器和调试的情况下在我的设备上安装 React Native 应用程序?
【发布时间】:2016-11-19 19:33:34
【问题描述】:

我想测试性能,所以我不想使用开发服务器或任何开发模式。我只想将应用程序安装到物理设备上,而无需通过 Google Play 商店或 Apple。我该怎么做?

docs say that I should do this

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

这给了我一个文件。我该如何处理该文件才能将其发送到我的设备?

【问题讨论】:

    标签: react-native


    【解决方案1】:

    如果您已经构建了 APK\IPA:

    对于 android,您可以运行:adb install path\to\your\apk(如果要重新安装,请添加 -r)

    对于 ios 我不确定,但this SO 问题可能会有所帮助:

    是的,您可以在 iPad 上安装 IPA,首先您必须将该 IPA 导入您的 iTunes。将您的 iPad 连接到 iTunes,然后通过单击安装然后同步来安装应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-02-29
      • 1970-01-01
      • 1970-01-01
      • 2018-09-07
      • 2019-07-25
      • 2017-03-13
      • 2010-09-19
      相关资源
      最近更新 更多