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

升级xcode到11.4后,运行RN项目报错。

error.png

解决方法:

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

在RCTModuleMethod.mm文件下添加下列一行

RCTReadString(input, "attribute((unused))") ||

code.png

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