本文介绍了找不到"GoogleUtilities/GULAppEnvironmentUtil.h"文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在添加一些Pod之后尝试编译我的项目.编译时会出现以下错误

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

Podfile.lock代码段

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)

推荐答案

在Podfile中,将Google/Analytics更改为GoogleAnalytics. Google pod已过时,并且与最新的Firebase版本不兼容.

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

另一种但不建议的解决方法是,将Firebase版本锁定为小于5.5的版本.

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

这篇关于找不到"GoogleUtilities/GULAppEnvironmentUtil.h"文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-19 03:25