模块 'Firebase' 没有名为 'functions' 的成员

Module 'Firebase' has no member named 'functions'

我无法在 xcode 中加载 Firebase 函数。

import Firebase
lazy var functions = Firebase.functions()

就像 firebase 文档所说的那样安装。

Pod 显示在 pods/pods/FirebaseFunctions 下方。

不知道在这里做什么。

Firebase 6.25.0 Firebase Functions (2.5.1)(它显示在我的 pod install idk why 中的括号中)。

根据 Firebase 文档,您应该调用

lazy var functions = Functions.functions()

https://firebase.google.com/docs/functions/callable