Unknown argument type '__attribute__' in method RCTAppState. Extend RCTConvert to support this type

Viewed 1309

Got the following error running a react-native app on iOS:

Xcode 11 Error: "Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type."
1 Answers

Solution taken from here:

This is a 0.59 version bug.

Edit the following file:

react-native/React/Base/RCTModuleMethod.mm

Add in line 94:

RCTReadString(input, "__attribute__((__unused__))") ||
Related