您的位置:首页 > 移动开发

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 到我们该项目的根目录下;

//执行
$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 报错解决
相关文章推荐