Xcode11 Unknown argument type '__attribute__' in method

Xcode11 Unknown argument type '__attribute__' in method_第1张图片
企业微信截图_49f8e0a3-ee40-4482-90e9-605a2b10d4bd.png

解决方法:

node_modules/react-native/React/Base/RCTModuleMethod.mm

其中的方法修改成下面这样:

static BOOL RCTParseUnused(const char **input) { return RCTReadString(input, "__attribute__((unused))") || RCTReadString(input, "__attribute__((__unused__))") || RCTReadString(input, "__unused"); }

你可能感兴趣的:(Xcode11 Unknown argument type '__attribute__' in method)