React Native 0.32以下版本Xcode8报错解决办法

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);
RCTSCROLLVIEW.M 报错

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

在RCTCustomScrollView类的实现里面进行如下修改:

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

你可能感兴趣的:(React Native 0.32以下版本Xcode8报错解决办法)