IOS fails to build at "Install Pods" stage with "Could not find react-native-codegen." error.

Hi team,

I’m currently facing a building issue on the ios platform that happens at “Install pods” stage after upgrading from SDK 47 to 49 as follows.

Has anyone had the same issue? Any suggestions on how to fix it?