美文网首页
React-Native0.32以下版本xcode8中报错解决方

React-Native0.32以下版本xcode8中报错解决方

作者: 清风沐沐 | 来源:发表于2016-10-26 10:29 被阅读102次

RCTSRWebSocket.m报错

Ignoring return value of function declared with warn_unused_result attribute

  • 这个报错在此文件中有两处,代码
    SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);

  • 修改为
    (void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);

前面加上(void)。

RCTScrollView.m 报错

Use of undeclared identifier '_refreshControl'; did you mean 'refreshControl'?

@implementation RCTCustomScrollView
{
  __weak UIView *_dockedHeaderView;
  RCTRefreshControl *_refreshControl;   // 加入此行
}

相关文章

网友评论

      本文标题:React-Native0.32以下版本xcode8中报错解决方

      本文链接:https://www.haomeiwen.com/subject/jyyduttx.html