xcode 8.0 导致rn无法运行解决办法

2021-05-11 10:02:16 浏览数 (1)

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);

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

解决办法如下

@implementation RCTCustomScrollView

{

    __weak UIView *_dockedHeaderView;

    RCTRefreshControl *_refreshControl; // 加入此行

}

0 人点赞