解决办法:
在AppDelegate.m文件里,把
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@”index.ios” fallbackResource:nil];
替换为:
jsCodeLocation = [NSURL URLWithString:@”http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true“];
然后在终端重新运行react-native run-ios 即可
no bundle url present
最新推荐文章于 2024-03-19 19:42:39 发布