React native build fails after mac update (macOS Big Sur 11.6)

Since the recent update last week, my react native apps build are failing. I have tried all the recommendations in various blogs e.g commenting out flipper in podfile, creating swift bridging header file, excluding arm64 architecture as mine is M1 chip mac but no avail. Can someone help me in resolving this issue or guide me in the right direction, already wasted lot of time for no fault of mine.

Main error

Undefined symbols for architecture x86_64:  "_swift_FORCE_LOAD$_swiftDataDetection", referenced from:    _swift_FORCE_LOAD$swiftDataDetection$_YogaKit in libYogaKit.a(YGLayoutExtensions.o)    (maybe you meant: _swift_FORCE_LOAD$swiftDataDetection$_YogaKit)  "_swift_FORCE_LOAD$_swiftFileProvider", referenced from:    _swift_FORCE_LOAD$swiftFileProvider$_YogaKit in libYogaKit.a(YGLayoutExtensions.o)    (maybe you meant: _swift_FORCE_LOAD$swiftFileProvider$_YogaKit) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I get different error when comment out the flipper in podfile.

Any help will be much appreciated.

Did you contact React ? Haven't they issued updates recently ?

React native build fails after mac update (macOS Big Sur 11.6)
 
 
Q