5

So I am having an issue in compiling my project with firebase. This issue started the minuted I updated all my firebase pods. Ever since I updated the pods I have been getting this error

Lexical or preprocessor issue

and then when I go to what the error is it says this

'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

Has anyone faced this problem or have any idea how to fix it?

I have tried uninstalling and installing, I have tried changing the scheme and rebuilding, I have tried cleaning and building and nothing has worked.

I have included a picture of what I can see in Xcode.

enter image description here

Here is what my podfile looks like

enter image description here

VecopWall
  • 549
  • 1
  • 7
  • 23
Bo Jackson
  • 345
  • 1
  • 5
  • 17

2 Answers2

1

Change the Podfile from pod 'Google/SignIn' to pod 'GoogleSignIn'.

source: issue 2100.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
  • the reason is in every cause an outdated version of `GoogleUtilities` ... – Martin Zeitler Jan 18 '19 at 01:07
  • im confused are you telling me to add that pod? – Bo Jackson Jan 18 '19 at 01:08
  • @BoJackson that screenshot is merely useless. a list of pods might enable someone to leave a better answer... because some pod might depend on an outdated version of `GoogleUtilities`, which lacks the `GULAppEnvironmentUtil.h` header. – Martin Zeitler Jan 18 '19 at 01:10
  • okay so again do i add this pod, do i update google utilities, im generally lost – Bo Jackson Jan 18 '19 at 01:12
  • @BoJackson if you add it as text instead of a screenshot; it would be something one could copy & paste into an IDE... looking at things barely helps with dependency issues. there are at least 7 closed issue concerning that header file: https://github.com/firebase/firebase-ios-sdk/issues?q=is%3Aissue+GULAppEnvironmentUtil+is%3Aclosed – Martin Zeitler Jan 18 '19 at 01:17
  • what do you want me to add in text? – Bo Jackson Jan 18 '19 at 01:18
  • @BoJackson this would improve your chances to get an answer (I don't even have `OSX`); while opening a new issue on GitHub (incl. the pods as text) might also lead to an answer. this is a good example: https://github.com/firebase/firebase-ios-sdk/issues/1266 – Martin Zeitler Jan 18 '19 at 01:20
1

After reading many solutions, what worked for me was doing a pod update:

cd platforms/ios; pod update; cd ../..

That brought all the versions into line. Occams razor, I guess.

AlphaBeta
  • 1,023
  • 1
  • 9
  • 18