React-Native 'RCTRootView.h' file not found AppDelegate.m
2016-11-14 20:46
204 查看
1.有时在打开React-Native的项目时,会报错:’RCTRootView.h’ file not found AppDelegate.m 文件找不到;
2.cd 到我们该项目的根目录下;
3.执行完后,编译项目,看到还会提示错误: 在RCTSRWebSocket.m报错Ignoring return value of function declared with warn_unused_result attribute
再次运行,即可运行成功.
2.cd 到我们该项目的根目录下;
//执行 $npm install
3.执行完后,编译项目,看到还会提示错误: 在RCTSRWebSocket.m报错Ignoring return value of function declared with warn_unused_result attribute
两处的报错代码: SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
//解决办法 分别在两出代码前面加上void (void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
再次运行,即可运行成功.
相关文章推荐
- React-Native 'RCTRootView.h' file not found AppDelegate.m
- react native 导入第三方连接库,Orientation.h file is not found
- ReactNative出现错误问题'React/RCTBridgeModule.h' file not found
- React Native 日常报错 'config.h' file not found
- Caused by: java.lang.ClassNotFoundException: Didn't find class "** *** ** **" on path: DexPathList[[zip file "/data/app/*** *** ***-2/base.apk"],nativeLibraryDirectories
- ios react native 手动配置 realm 使用cocoapods 会编译报错 fatal error: 'React/RCTBridge.h' file not found
- ReactNative Ios报出 'React/RCTBundleURLProvider.h' file not found错误
- [React-native] 报React/RCTBridgeModule.h' file not found
- React Native 'boost/iterator/iterator_adaptor.hpp' file not found’解决方案
- 07-09 07:28:38.350: E/AndroidRuntime(1437): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.googleplay.ui.activity.MainActivity" on path: DexPathList[[zip file "/data/app/c
- Cordova/CDVViewController.h file not found 解决办法
- Cordova/CDVViewController.h file not found 解决办法
- react native 真机调试appdelegate.m找不到ip地址的处理
- ReactNative Could not install the app on the device(Mac OS环境)
- Cordova/CDVViewController.h file not found 解决办法
- Cordova/CDVViewController.h file not found解决办法
- AndroidStudio编译error:app:validateReleaseSigning'Keystore file not found for signing config 'release
- android开源项目SmartImageView设置网络图片url时抛出java.io.FileNotFoundException
- xcode archived issue:'Cordova/CDVViewController.h' file not found
- [react-native开发中错误]SDK location not found. Define