Unknown argument type '__attribute__' in method -[RCTUIManager setJSResponder:blockNativeResponde...

问题: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");
}

参考:https://github.com/facebook/react-native/issues/25138

你可能感兴趣的:(Unknown argument type '__attribute__' in method -[RCTUIManager setJSResponder:blockNativeResponde...)