Skip to content

Commit e966623

Browse files
authored
修复XCode 11启动RN应用直接我crash的问题
facebook#25138
1 parent d9ff176 commit e966623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

React/Base/RCTModuleMethod.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static BOOL RCTParseSelectorPart(const char **input, NSMutableString *selector)
9191
static BOOL RCTParseUnused(const char **input)
9292
{
9393
return RCTReadString(input, "__unused") ||
94+
RCTReadString(input, "__attribute__((__unused__))") ||
9495
RCTReadString(input, "__attribute__((unused))");
9596
}
9697

0 commit comments

Comments
 (0)