No matching function for call to 'RCTAppSetupPrepareApp'" and "No matching function for call to 'RCTAppSetupDefaultRootView'" errors when building project in Xcode 발생시

이희운 (HOSY)·2023년 8월 29일

에러

목록 보기
4/5

리액트 네이티브 버전을 업그레이드 할 때 발생했던 버그입니다.
ios>>AppDelegate.mm 파일을 변경하여 해결,

File: AppDelegate.mm

Before:

RCTAppSetupPrepareApp(application);

After:

RCTAppSetupPrepareApp(application, true);

Before:

UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"Mobile", initProps);

After:

UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"YOUR_PROJECT", initProps, true);

from @hemanthAppmaker of https://github.com/facebook/react-native/issues/36293

profile
hello world

0개의 댓글