【发布时间】:2021-03-07 21:29:56
【问题描述】:
一切正常,突然之间发生了这种情况。我试过了
- 卸载 Cocoapods
- 再次安装更新
- 删除 pod.lock 文件
- 升级红宝石升级宝石
没有任何效果。我也尝试运行其他项目,但是一旦添加了 firebase 依赖项,我就会收到此错误..here
Analyzing dependencies
firebase_auth: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
[!] Failed to load 'firebase_auth' podspec:
[!] Invalid `firebase_auth.podspec` file: undefined method `ui' for #<Pod::Specification
name="firebase_auth">.
/ios/.symlinks/plugins/firebase_auth/ios/firebase_auth.podspec:24
# -------------------------------------------
# s.description = pubspec['description']
> s.ui.homepage = pubspec['ui.homepage']
# s.license = { :file => '../LICENSE' }
# -------------------------------------------
Error running pod install
【问题讨论】:
-
您尝试更新 cocoapods 了吗? $ sudo gem install cocoapods
-
是的,我做了......像 20 次......
-
我的错误是 cocapods 未安装或未处于有效状态,请使用 gem install cocoapods 我做到了.. 那是当我停止收到该错误但现在我收到这个错误。
-
尝试在 pubspec.yaml 中的
firebase_auth之前添加 lib:firebase_core: ^0.5.2+1然后运行 flutter pub get -
依赖项:flutter:sdk:flutter firebase_core:^0.5.2+1 firebase_auth:^0.18.3+1 firebase_database:^4.3.0