1.RCTSRWebSocket.m報(bào)錯(cuò):
SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t*)mask_key)做處理,只需在該處加上(void)即可。如下:(void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
RCTSRWebSocket.m 共有兩處涉及,請確保都要修改。
2.Use of undeclared identifier '_refreshControl'; did you mean 'refreshControl'?這個(gè)錯(cuò)誤解決辦法
@implementation RCTCustomScrollView
{
__weak UIView *_dockedHeaderView;
RCTRefreshControl *_refreshControl; //加入此行
}
如果你的react-ntive 版本在較高,這些不用處理。