You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XCode version 7.3.1 is fine but if I use version 8.2(beta) instead, then the XCode reports two issues:
/pathTo/myProject/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:494:3: Ignoring return value of function declared with warn_unused_result attribute
/pathTo/myProject/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1334:5: Ignoring return value of function declared with warn_unused_result attribute
If I comment out the following two lines from "RCTWebSocket.m", the build succeeds: SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes); SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
The text was updated successfully, but these errors were encountered:
Specifically, it caused by the llvm compiler flag -Werror, means turn warnings into errors, which might start work in later llvm 8.0, you can removed it in the build settings of RCTWebSocket target.
XCode version 7.3.1 is fine but if I use version 8.2(beta) instead, then the XCode reports two issues:
If I comment out the following two lines from "RCTWebSocket.m", the build succeeds:
SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
The text was updated successfully, but these errors were encountered: