簡體   English   中英

有沒有辦法修復這個 cocoapods 相關錯誤?

[英]Is there a way that I can fix this cocoapods related error?

感謝您閱讀我的問題。

我想問你為什么我運行我的應用程序時會顯示下面的錯誤!

在調試模式下在 iPhone 12 Pro Max 上啟動 lib/main.dart... 運行 pod install... CocoaPods 的 output:↳ 准備中

Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) Finding Podfile changes - Flutter - audioplayers - cloud_firestore - firebase_analytics - firebase_auth - firebase_core - google_sign_in - path_provider_ios Fetching external sources -> Fetching podspec for `Flutter` from `Flutter` -> Fetching podspec for `audioplayers` from `.symlinks/plugins/audioplayers/ios` -> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios` cloud_firestore: Using Firebase SDK version '8.10.0' defined in 'firebase_core' -> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios` firebase_analytics: Using Firebase SDK version '8.10.0' defined in 'firebase_core' -> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios` firebase_auth: Using Firebase SDK version '8.10.0' defined in 'firebase_core' -> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios` firebase_core: Using Firebase SDK version '8.10.0' defined in 'firebase_core' -> Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios` -> Fetching podspec for `path_provider_ios` from `.symlinks/plugins/path_provider_ios/ios` Resolving dependencies of `Podfile` CDN: trunk Relative path: CocoaPods-version.yml exists: Returning local because checking is only performed in repo update CDN: trunk Relative path. all_pods_versions_0_3_5:txt exists: Returning local because checking is only performed in repo update CDN. trunk Relative path. Specs/0/3/5/Firebase/8.10.0/Firebase.podspec.json exists! Returning

local 因為檢查只在 repo update CDN:trunk 相對路徑:all_pods_versions_d_4_0.txt 存在:返回本地因為檢查只在 repo update CDN:trunk 相對路徑。 Specs/d/4/0/GoogleSignIn/6.1.0/GoogleSignIn.podspec:json 存在:返回本地,因為僅在 repo 更新 CDN 中執行檢查。 主干相對路徑。 Specs/0/3/5/Firebase/8.10.0/Firebase:podspec.json 存在:返回本地,因為僅在 repo 更新中執行檢查 [.] CocoaPods 找不到 pod“Firebase/CoreOnly”的兼容版本。 在快照中 (Podfile.lock):Firebase/CoreOnly (= 8.9.0)

 In Podfile: firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.11.0, which depends on Firebase/CoreOnly (= 8.10.0) You have either: * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`. * changed the constraints of dependency `Firebase/CoreOnly` inside your development pod `firebase_core`. You should run `pod update Firebase/CoreOnly` to apply changes you've made. /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict' <internal:kernel>:90:in `tap' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:257:in `process_topmost_state' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in

resolve' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/resolver.rb:94:in resolve'/opt/homebrew/Cellar/cocoapods/1.11.2_1 /libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1078:in block in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in部分' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:1076:in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:124:in analyze' /opt/homebrew/Cellar/cocoapods/1.11 .2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416:in analyze' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241:in block in resolve_dependencies' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64:in section' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in section' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240:in resolve_dependencies'/opt/homebrew/Cellar/cocoapods/1.11.2_1 /libexec/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161:in install.' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command/install:rb:52:in install.' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command/install:rb:52:in run' /opt/homebrew/Cellar/cocoapods/1.11.2_1 /libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in run' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/gems/cocoapods-1.11.2/bin/pod:55:in <top (required)>' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in load' /opt/homebrew/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in `'

錯誤:CocoaPods 的規范存儲庫太舊,無法滿足依賴關系。 要更新 CocoaPods 規范,請運行: pod repo update

運行 pod install 時出錯 在 iPhone 12 Pro Max 上啟動應用程序時出錯。

我知道這是很長的錯誤。

如上所述,我嘗試過pod repo updatepod install --repo-updatepod update Firebase/CoreOnly

一切都不能解決這個錯誤。

所以我嘗試重新安裝 cocoapods

它是最新版本,但仍然無法修復此錯誤。

我該如何解決這個錯誤?

如果有人知道,請幫助我!

在終端上運行以下命令

flutter clean
cd ios 
delete Pods
delete Podfile.lock
flutter pub get
pod install
flutter clean && flutter run

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM