'Reached end of file while looking for: Mach-O slice

I am building a ReactNative application. Able to run the app from xcode to device or simulator.

But while exporting i am facing the following error

Logs doesn't show which library causing the issue.

Fyi., I am using M1 Pro Macbook

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source