【问题标题】:Metro bundler is not starting for ios projectMetro bundler 未启动 ios 项目
【发布时间】:2023-01-27 13:22:12
【问题描述】:

Metro bundler 没有为我的本机 ios 应用程序打开。我已经在我的智能手机(不是在 android 模拟器)中运行了同一个项目的 android 应用程序,它没有问题。一切顺利——自动启动 metro bundler 并成功捆绑。问题仅在于 ios 应用程序。 ios 应用程序在今天之前运行良好。昨天我通过更改版本代码并在 xcode 中构建在 testflight 中上传了 ios 应用程序。问题是因为模拟器或 xcode 有任何问题。我已经尝试了一些来自 github 和 stackoverflow 的解决方案,但还没有改变。

与其他 ios 反应原生项目一起测试,他们也有同样的问题。

在使用 npx react-native run-ios 命令运行时,ios 模拟器在没有打开 metro bundler 的情况下启动,并且没有任何反应。终端只显示构建应用程序.....有帮助吗?

【问题讨论】:

    标签: ios react-native ios-simulator metro-bundler


    【解决方案1】:

    我通过等待超过 45 分钟解决了这个问题。构建和启动 metro bundler 需要时间。因此,如果有人遇到此问题,请等待启动捆绑程序。

    【讨论】:

      猜你喜欢
      • 2021-02-26
      • 2020-03-15
      • 1970-01-01
      • 2022-12-18
      • 2020-06-23
      • 2019-03-16
      • 2022-08-14
      • 1970-01-01
      相关资源
      最近更新 更多