Upon searching and trying several solutions - > arch -x86_64 pod install --repo-update this command worked. Seemingly it happened due to M1 build.
arch -x86_64 pod install --repo-update