[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换成新版本的。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容