수상한 프로그래머/React Native

xcode 11.3 베타버전에서 빌드시 Unknown argument type '__attribute 오류

산산지 2020. 4. 17. 20:57
반응형

xcode의 최신버전인 xcode 11.3 베타버전에서 React Native 빌드시 

Unknown argument type '__attribute__' in method -[RCTAppStat 라는 오류가 터치만 하면

뜨는 증상이 발견되었다. 

이런 오류가 발생되면 RCTModuleMethod.mm 파일로 가서 RCTParseUnused 라는 메소드를

찾은 다음 내용을 아래와 같이 변경하면 된다.

static BOOL RCTParseUnused(const char **input) { 
	return RCTReadString(input, "__unused") || RCTReadString(input, "__attribute__((__unused__))") ||
    //solve by add this line
    RCTReadString(input, "__attribute__((unused))");  
}

 오케이 해결 ㅎㅎ

반응형