https://github.com/facebook/react-native/pull/25146
在xcode里查找RCTModuleMethod.m,找到该方法RCTParseUnused,替换成下面的代码,就可以运行。
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__unused");
}
网友评论