Added Firebase pod. Worked fine on Xcode 9.4. But after updating Xcode to 10.1, the above issue is showing. Interestingly, the file was there under environment folder in the pods section.
- Clean your build.
- In the pod file, make deployment target 9.0 or higher (I did, but this step may not be mandatory)
- Exit Xcode.
- Open terminal.
- Run “sudo gem install cocoapods” (it will update your cocoapods version to latest)
- Run “pod update”
- Open your project & build.
Error should be gone.