本文介绍了react-native 不存在捆绑 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试执行 react-native run-ios 时出现以下错误(请参见下面的屏幕截图).我已经检查了

解决方案

我使用以下解决方案解决了这个问题:

编辑 /ios//AppDelegate.m 并更改 jsCodeLocation 变量如下:

jsCodeLocation =[NSURL URLWithString:@"http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true"];

I get the following error when trying to do react-native run-ios (see screenshot below). I have checked this answer as well as the github thread but neither were helpful.

Any ideas on what to look at or how to make this work? The problem seems to be isolated to ios, as the android emulator works ok. Looks like maybe it's some sort of bug with the facebook code.

解决方案

I resolved it with the following solution:

Edit <your_project_folder>/ios/<project_name>/AppDelegate.m and change the jsCodeLocation variable as follows:

jsCodeLocation =
    [NSURL URLWithString:@"http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true"];

这篇关于react-native 不存在捆绑 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 06:28