'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

ε祈祈猫儿з 提交于 2019-12-10 01:23:37

问题


Trying to compile my project after adding some pods. While compiling it gives below error

'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

Podfile.lock snippet

- FirebaseCore (5.1.1):
        - GoogleUtilities/Logger (~> 5.2)
      - FirebaseDynamicLinks (3.0.2):
        - FirebaseAnalytics (~> 5.1)
      - FirebaseInAppMessaging (0.11.0):
        - FirebaseAnalytics (~> 5.1)
        - FirebaseCore (~> 5.1)
        - FirebaseInstanceID (~> 3.2)
        - GoogleUtilities/Environment (~> 5.0)
      - FirebaseInstanceID (3.2.1):
        - FirebaseCore (~> 5.1)
        - GoogleUtilities/Environment (~> 5.2)
      - FirebaseMessaging (3.1.0):
        - FirebaseCore (~> 5.0)
        - FirebaseInstanceID (~> 3.0)
        - GoogleUtilities/Reachability (~> 5.2)
        - Protobuf (~> 3.1)
      - FirebaseRemoteConfig (3.0.1):
        - FirebaseABTesting (~> 2.0)
        - FirebaseAnalytics (~> 5.1)
        - FirebaseCore (~> 5.1)
        - FirebaseInstanceID (~> 3.2)
        - GoogleUtilities/Environment (~> 5.2)
        - "GoogleUtilities/NSData+zlib (~> 5.2)"
        - Protobuf (~> 3.5)
      - Google/Analytics (2.0.4):
        - Google/Core
        - GoogleAnalytics (~> 3.12)
      - Google/Core (2.0.4):
        - GoogleInterchangeUtilities (~> 1.0)
        - GoogleNetworkingUtilities (~> 1.0)
        - GoogleSymbolUtilities (~> 1.0)
        - GoogleUtilities (~> 1.1)

回答1:


In the Podfile, change Google/Analytics to GoogleAnalytics. The Google pod is deprecated and not compatible with recent Firebase versions.

An alternative, but not recommended workaround, could be to lock the Firebase version to something less than 5.5.




回答2:


Problem fixed for me by following steps:

  1. Clean the project
  2. Close the Xcode
  3. Delete derived data
  4. If you have already installed the POD, kindly delete the “.xcworkspace” & “Podfile.lock” files
  5. Install pod again
  6. Open “.xcworkspace” and Run



回答3:


try to add this plugin :

cordova plugin add cordova-plugin-cocoapod-support --save

After go to platform/ios and run : pod update




回答4:


  • In the podfile, install all pods after uncomment use_frameworks!.
  • If you already installed pods then remove pods, and install again after uncomment use_frameworks



回答5:


As simple as that

  • comment the pod
  • pod install
  • uncomment the pod (Make sure there is not version added to pod)
  • pod install

There you go.




回答6:


Running pod update fixed this for me



来源:https://stackoverflow.com/questions/51925881/googleutilities-gulappenvironmentutil-h-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!