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

Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend ..._第1张图片
5d8ab2410926775a05000222.png

Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend ..._第2张图片
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

你可能感兴趣的:(Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend ...)