no bundle url present
解决办法:
在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 即可

相关文章:

  • 2021-10-14
  • 2021-11-16
  • 2021-05-18
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-03-30
  • 2021-06-26
  • 2021-06-03
  • 2021-12-21
相关资源
相似解决方案