[!] Invalid Podfile
file: cannot load such file -- /Users/hirenchheta/Desktop/ErgoAuditor_repo/node_modules/react-native/scripts/react_native_pods.
from /Users/hirenchheta/Desktop/ErgoAuditor_repo/ios/Podfile:1
require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
Mac M1 architecture is not directly compatible with Cocoapods. You can solve it by running:
https://reactnative.dev/docs/environment-setup#:~:text=Note%20for%20Mac,the%20proper%20architecture.