'Apple Silicon not compiling C++ libraries

I've recently switched to Apple M1 Pro Macbook and My project is now not compiling on it. I'm using Xcode 13.2.1 and I have reinstalled pods also. I'm using the following library https://github.com/facebookincubator/spectrum if anyone knows how we can make it work let me know. I have even tried to run with rosetta but no luck. I am getting this error

Showing Recent Errors Only
/ProjectFolderPath/Pods/SpectrumCore/cpp/spectrum/Transformations.h:8:10: 'spectrum/requirements/Crop.h' file not found

The same project works fine in intel based mac.



Sources

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

Source: Stack Overflow

Solution Source