Lexical or Preprocessor Issue (Xcode): 'GoogleMaps/GoogleMaps.h' file not found

340 views Asked by At

In my Flutter project I can no longer compile the app. Every time I try, in the iOS simulator, I get the error "Lexical or Preprocessor Issue (Xcode): 'GoogleMaps/GoogleMaps.h' file not found". So far I have been using google_maps_flutter version: ^2.5.3 without any problems. I don't know how to solve it.

I tried to clean the project, remove the hidden .pub-cache folder, reinstall the pods, but without success.

1

There are 1 answers

0
Marlo Quidato On

I experienced the same error and had been trying to fix it for a couple of days already.

I tried these and nothing worked

rm -rf Pods Podfile.lock
pod cache clean --all  
flutter pub cache clean

What finally fixed it was deleting ios directory and putting if back using git.