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 即可