Unknown argument type 'attribute' in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type.
升级Xcode.11, 出现此报错。
可以查看这个问题的提交记录
https://github.com/facebook/react-native/issues/25138
IOS文件中找到: RCTModuleMethod.mm
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "__unused");
}
在Xcode里面,目录
Libraries->React.xcodeproj->React->Base ->RCTModuleMethod.mm