[React Native Error]RCTSRWebSocket.m:Ignoring return value of function declared with warn_unused_result attribute

解决一
(void)SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
(void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
解决二

选中RCTWebSocket.xcodeproj-->RCTWebSocket(TARGETS)-->Build Setting-->Custom Compiler Flags-->Other Warning Flags-->删除-Werror-Wall

解决三

升级React Native及其它组件(此方法有小小风险)

解决四(未尝试)

移花接木: 将旧版本的RCTWebSocket.xcodeproj换成新版本的。

你可能感兴趣的:([React Native Error]RCTSRWebSocket.m:Ignoring return value of function declared with warn_unused_result attribute)