Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行不出来 #11

Open
liuhuawen opened this issue Apr 6, 2017 · 2 comments
Open

运行不出来 #11

liuhuawen opened this issue Apr 6, 2017 · 2 comments

Comments

@liuhuawen
Copy link

/Users/guest/workspace/rn_rank/rn_rank/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:494:3: error: ignoring return value of function declared with
warn_unused_result attribute [-Werror,-Wunused-result]
SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/guest/workspace/rn_rank/rn_rank/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1334:5: error: ignoring return value of function declared with
warn_unused_result attribute [-Werror,-Wunused-result]
SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

** BUILD FAILED **
报这个错

@cwinl
Copy link

cwinl commented Aug 12, 2019

RCTWebSocket-->Project-->RCTWebSocket-->build setting-->apple clang-custom compiler flags-->other warning flags-->去掉 -Werror

编辑 RCTScrollView.m
查找 @implementation RCTCustomScrollView
改为:

@implementation RCTCustomScrollView
{
__weak UIView *_dockedHeaderView;
RCTRefreshControl *_refreshControl;
}

参考:
https://www.jianshu.com/p/e3ddb681863f

@cwinl
Copy link

cwinl commented Aug 12, 2019

只有ios的有上面错误,即使修改了,运行也是红屏
android的运行正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants