'indexing files in xcode creates about 3500 mostly empty folders with no name or wingdings as names

I am using an M1 Mac and have been working on a react native project for almost a year now, but all of a sudden now that I open Xcode to build the app to deploy, it takes unusually long to index. When I take a look at my ios folder, there are about 3500 blank directories that either have no name or have wingdings as the folder name. I haven't been able to find anything similar to this issue online.



Sources

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

Source: Stack Overflow

Solution Source