问题:Xcode升级到11版本后报Unknown argument type 'attribute' in method -[RCTUIManager setJSResponder:blockNativeResponder:]. Extend RCTConvert to support this type
解决方案:
在 React/Base/RCTModuleMethod.mm 中找到RCTParseUnused 方法,修改为如下代码:
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__unused");
}