Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend ...

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

5d8ab2410926775a05000222.png

20190703172924410.png

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

推荐阅读更多精彩内容