当 运行 通过 Xcode 反应本机项目时,iOS 机器上出现错误。错误代码是-999

Getting error on iOS machine when running react native project through Xcode. Error code is -999

我刚刚在 Windows 机器上为 Android 设备在 React Native 上完成开发,当我尝试 运行 在 Mac 和 Xcode 上使用相同的代码时无法连接到开发服务器错误的捆绑加载问题。

我尝试了以下解决方案,但没有成功

  1. 杀死所有节点(运行在 8081 端口上)

  2. 更改本地主机路径

有关错误详细信息,请参见下图。

As you are not developing app on iOS platform, source code is written & tested on windows so probably there is setup (or config) issue on mac machine.

So to solve this issue install react native on mac machine with same react native version and try again by killing all processes those are running on 8081 port.