None 的规范来源包含满足依赖项的规范:Firebase (~> 6.33.0)、Firebase (= 6.33.0, ~> 6.33.0)
None of your spec sources contain a spec satisfying the dependencies: Firebase (~> 6.33.0), Firebase (= 6.33.0, ~> 6.33.0)
我正在 pods 中实施一些 firebase SDK,但我在对它们进行版本控制时遇到问题。我想设置 Firebase 6.33。我确实检查了这个版本的 pod 规范并根据那个更新了我的 pods。
pod 'Firebase', '~> 6.33.0'
pod 'FirebaseCore', '~> 6.10.3'
pod 'FirebasePerformance', '~> 3.3.0'
pod 'FirebaseRemoteConfig', '~> 4.9.0'
pod 'FirebaseAnalytics', '~> 6.8.3'
pod 'FirebaseCrashlytics', '~> 4.6.1'
当我使用上面的代码时,它在 jenkins 上给我这个错误:
None of your spec sources contain a spec satisfying the dependencies:
Firebase (~> 6.33.0), Firebase (= 6.33.0, ~> 6.33.0).
我先 pod deintegrate
然后 pod install
进行全新安装。它不会在我的 MacBook 上出现错误,但会在 jenkins 上出现。
podspec.json: https://github.com/CocoaPods/Specs/blob/master/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json
pod install --repo-update
更新到最近发布的 CocoaPods pods。
为什么指定了所有不同版本的 firebase?对我来说,我有三个不同的 Firebase 相关插件(Analytics / Dynamiclinks / Firebasex)。其中每一个都有它试图从中提取的不同来源(一些 v 7.0.0 和一些 v 6.33.0)。我进入 podfile 并将所有版本更改为 6.33.0,然后就可以构建了。
这是为我做的
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org
pod cache clean --all
flutter clean
flutter pub get
pod repo update
pod install
有谁带着Mac M1,在VSCode终端尝试运行 pod install --repo-update
没有成功,我找到的解决方案是:
- 在应用程序上找到本机终端
- 确保它是 运行 Rosetta(右键单击终端 > 获取信息 > 检查使用 Rosetta 打开)
- 打开终端
cd path_to_your_ios_folder
和 运行 pod install --repo-update
。那应该有用!
我正在使用:
Pod: 1.11.0
firebase_core: ^1.6.0
firebase_crashlytics: ^2.2.1
firebase_analytics: ^8.3.1
firebase_messaging: ^10.0.6
flutter: 2.2.3
Apple M1 用户
在您的 ios 文件夹中,在终端中执行这些命令
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
如果不行试试这个
arch -x86_64 pod install --repo-update
对于 Apple Intel 用户
pod install --repo-update
我正在 pods 中实施一些 firebase SDK,但我在对它们进行版本控制时遇到问题。我想设置 Firebase 6.33。我确实检查了这个版本的 pod 规范并根据那个更新了我的 pods。
pod 'Firebase', '~> 6.33.0'
pod 'FirebaseCore', '~> 6.10.3'
pod 'FirebasePerformance', '~> 3.3.0'
pod 'FirebaseRemoteConfig', '~> 4.9.0'
pod 'FirebaseAnalytics', '~> 6.8.3'
pod 'FirebaseCrashlytics', '~> 4.6.1'
当我使用上面的代码时,它在 jenkins 上给我这个错误:
None of your spec sources contain a spec satisfying the dependencies: Firebase (~> 6.33.0), Firebase (= 6.33.0, ~> 6.33.0).
我先 pod deintegrate
然后 pod install
进行全新安装。它不会在我的 MacBook 上出现错误,但会在 jenkins 上出现。
podspec.json: https://github.com/CocoaPods/Specs/blob/master/Specs/0/3/5/Firebase/6.33.0/Firebase.podspec.json
pod install --repo-update
更新到最近发布的 CocoaPods pods。
为什么指定了所有不同版本的 firebase?对我来说,我有三个不同的 Firebase 相关插件(Analytics / Dynamiclinks / Firebasex)。其中每一个都有它试图从中提取的不同来源(一些 v 7.0.0 和一些 v 6.33.0)。我进入 podfile 并将所有版本更改为 6.33.0,然后就可以构建了。
这是为我做的
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org
pod cache clean --all
flutter clean
flutter pub get
pod repo update
pod install
有谁带着Mac M1,在VSCode终端尝试运行 pod install --repo-update
没有成功,我找到的解决方案是:
- 在应用程序上找到本机终端
- 确保它是 运行 Rosetta(右键单击终端 > 获取信息 > 检查使用 Rosetta 打开)
- 打开终端
cd path_to_your_ios_folder
和 运行pod install --repo-update
。那应该有用!
我正在使用:
Pod: 1.11.0
firebase_core: ^1.6.0
firebase_crashlytics: ^2.2.1
firebase_analytics: ^8.3.1
firebase_messaging: ^10.0.6
flutter: 2.2.3
Apple M1 用户
在您的 ios 文件夹中,在终端中执行这些命令
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
如果不行试试这个
arch -x86_64 pod install --repo-update
对于 Apple Intel 用户
pod install --repo-update