【问题标题】:GoogleUtilities/GULSceneDelegateSwizzler.h file not found未找到 GoogleUtilities/GULSceneDelegateSwizzler.h 文件
【发布时间】:2020-05-02 10:04:33
【问题描述】:

无法在 iOS/Xcode 上构建 Flutter 应用

Pubspec file with used dependencies

已经尝试过所有的 pod 安装/升级、flutter clean、pub install 等解决方案。

错误信息如下所示:

 ios/Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: fatal error:
    'GoogleUtilities/GULSceneDelegateSwizzler.h' file not found
    #import <GoogleUtilities/GULSceneDelegateSwizzler.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ios/Pods/FirebaseAuth/Firebase/Auth/Source/Auth/FIRAuth.m:32:9: note: did not find header
    'GULSceneDelegateSwizzler.h' in framework 'GoogleUtilities' (loaded from 'build/ios/Debug-iphonesimulator/GoogleUtilities')
    1 error generated.

非常感谢您对此问题的任何意见。

【问题讨论】:

    标签: ios firebase flutter dart


    【解决方案1】:

    从终端更新 pod:

    pod update
    

    这应该可以解决您的问题。

    ps。更新前备份您的应用

    【讨论】:

    • 这实际上解决了它,好像我使用升级而不是更新。非常感谢!
    【解决方案2】:

    移动到 iOS 目录(在你的 Flutter 项目中)并更新 pod

    cd ios
    pod update
    cd..
    flutter clean
    

    【讨论】:

      猜你喜欢
      • 2020-11-04
      • 2021-06-22
      • 1970-01-01
      • 2021-05-14
      • 2016-07-21
      • 2022-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多