RN日常问题汇总

1.CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/LearnRN.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

解决方案:终端输入:react-native upgrade 再跑项目

2.Failde to load bundle(http://localhost

解决方案:
1.Open a new tab and Start Metro Bundler directly from the project folder
react-native start --reset-cache
2.Now run react-native run-android or react-native run-ios

你可能感兴趣的:(RN日常问题汇总)