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.
I experienced the same error and had been trying to fix it for a couple of days already.
I tried these and nothing worked
What finally fixed it was deleting
iosdirectory and putting if back using git.