While generating IOS build this error occurs when we add @react-native-firebase/messaging and @react-native-firebase/pushnotification. node version 16 macbook air 2021 M1 chip. Xcode 14.2[[[enter image description here](https://i.sstatic.net/JmpWp.jpg)](https://i.sstatic.net/JsWu3.jpg)](https://i.sstatic.net/7UBQL.jpg)
I tried deleting pod files reinstalling and everything i could find on the internet for this error.
I solved it. Xcode was not picking up the node path because i installed the node through nvm so i ran "nvm install default" so nvm can link the default path to where xcode detects it.