解決一
(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
解決三
升級(jí)React Native及其它組件(此方法有小小風(fēng)險(xiǎn))
解決四(未嘗試)
移花接木: 將舊版本的RCTWebSocket.xcodeproj換成新版本的。