ReactNative Ios报出 'React/RCTBundleURLProvider.h' file not found错误
2018-01-09 11:26
1501 查看
我在创建react-native项目时 npm了一个第三方库 结果一打开 xcode 竟然报错 React/RCTBundleURLProvider.h' file not found;
然后 我试了各种网上的方法试了一遍, 还是不行
就在我要放弃的时候 ,突然想到把网上的方法 结合一下 试试,结果好了。
以下就是我的解决方法
打开Mac里面的终端,进入项目所在的文件夹目录;
把项目里面的 node_modules 文件夹删除掉,然后执行 npm install 命令
npm install安装完成后, 执行react-native upgrade命令
npm start
打开xcode (如果还报错)
左侧点击跟项目目录 -> 选择右侧 Build Settings -> 选择 All & Combined -> 搜索框输入 Always Search User Paths -> 将 Always Search User Paths 设置为 Yes -> Clean -> Build
这样就不会出错了!
以下是两个方法链接的地址 https://hacpai.com/article/1497235254333 http://blog.csdn.net/csdn2314/article/details/71215607
然后 我试了各种网上的方法试了一遍, 还是不行
就在我要放弃的时候 ,突然想到把网上的方法 结合一下 试试,结果好了。
以下就是我的解决方法
打开Mac里面的终端,进入项目所在的文件夹目录;
把项目里面的 node_modules 文件夹删除掉,然后执行 npm install 命令
npm install安装完成后, 执行react-native upgrade命令
npm start
打开xcode (如果还报错)
左侧点击跟项目目录 -> 选择右侧 Build Settings -> 选择 All & Combined -> 搜索框输入 Always Search User Paths -> 将 Always Search User Paths 设置为 Yes -> Clean -> Build
这样就不会出错了!
以下是两个方法链接的地址 https://hacpai.com/article/1497235254333 http://blog.csdn.net/csdn2314/article/details/71215607
相关文章推荐
- ReactNative报出 'React/RCTBundleURLProvider.h' file not found错误
- RN ios项目报错 'React/RCTBundleURLProvider.h' file not found
- 'React/RCTBundleURLProvider.h' file not found
- RN项目报错“React/RCTBundleURLProvider.h” file not found
- 运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found
- 'React/RCTBundleURLProvider.h’ file not found
- 运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found
- RN项目报错“RCTBundleURLProvider.h” file not found
- ios react native 手动配置 realm 使用cocoapods 会编译报错 fatal error: 'React/RCTBridge.h' file not found
- ReactNative出现错误问题'React/RCTBridgeModule.h' file not found
- [React-native] 报React/RCTBridgeModule.h' file not found
- 解决React Native 运行在ios上报'boost/iterator/iterator_adaptor.hpp' file not found'错误
- 【iOS错误笔记】'CADbugPrintf.h'file not found
- React-native 常见错误:Could not get BatchedBridge, make sure your bundle is packaged correctly
- 解决:VM虚拟机中MAC系统react native项目再次执行react-native run-ios 报错,no bundle url present
- IOS-React-Native:No bundle URL present
- React Native 日常报错 'config.h' file not found
- iOS常见错误3-Xcode导入第三方库 'MAMapKit/MAMapKit.h' file not found('XXXX/XXXX.h' file not found)错误
- react-native 运行报Could not get BatchedBridge, make sure your bundle is packaged correctly 错误