Jas*_* PJ 5 firebase flutter google-cloud-firestore
我的广告连播有问题,请参阅下文
在iPhone X上以调试模式启动lib / main.dart ...运行pod安装... CocoaPods的输出:准备中
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Core
Specs satisfying the `Firebase/Core` dependency were found, but they required a higher minimum deployment target.
CocoaPods could not find compatible versions for pod "GoogleUtilities/MethodSwizzler":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Core was resolved to 5.8.0, which depends on
FirebaseAnalytics (= 5.1.2) was resolved to 5.1.2, which depends on
GoogleUtilities/MethodSwizzler (~> 5.2.0)
Specs satisfying the `GoogleUtilities/MethodSwizzler (~> 5.2.0)` dependency were found, but they required a higher minimum deployment target.
CocoaPods could not find compatible versions for pod "gRPC-Core":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Firestore was resolved to 5.8.0, which depends on
FirebaseFirestore (= 0.13.3) was resolved to 0.13.3, which depends on
gRPC-C++ (~> 0.0.3) was resolved to 0.0.3, which depends on
gRPC-C++/Implementation (= 0.0.3) was resolved to 0.0.3, which depends on
gRPC-Core (= 1.14.0)
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
Firebase/Firestore was resolved to 5.8.0, which depends on
FirebaseFirestore (= 0.13.3) was resolved to 0.13.3, which depends on
gRPC-ProtoRPC (~> 1.0) was resolved to 1.14.1, which depends on
gRPC-ProtoRPC/Main (= 1.14.1) was resolved to 1.14.1, which depends on
gRPC (= 1.14.1) was resolved to 1.14.1, which depends on
gRPC/Main (= 1.14.1) was resolved to 1.14.1, which depends on
gRPC-Core (= 1.14.1)
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.5/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/resolver.rb:123:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:781:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:779:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:88:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
Run Code Online (Sandbox Code Playgroud)
CocoaPods错误输出:[33m警告:CocoaPods要求您的终端使用UTF-8编码。考虑将以下内容添加到〜/ .profile中:
export LANG=en_US.UTF-8
[0m
[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Run Code Online (Sandbox Code Playgroud)
运行Pod安装时出错在iPhone X上启动应用程序时出错。
Dmy*_*ian 91
我的设置:VS Code、Flutter
如果您没有Podfile.lock文件并且pod update没有帮助,请尝试以下操作:
ios/Pods/Local Podspevs项目中的目录json文件以找到所需的最高 ios 版本。我的"ios": "10.0"在其中一些ios/目录Podfile文件# platform :ios, '9.0'并替换9.0为 2. 步骤中的版本,例如10.0。
# platform :ios, '9.0' > platform :ios, '10.0'pod install,错误应该消失了Mic*_*ota 47
在 mac M1 上(在 ios 文件夹中),尝试arch -x86_64 pod update. 为我工作
Par*_*iya 35
当您升级 FlutterFire 包并尝试为 iOS 或 macOS 构建时,可能会发生此问题,这通常归结为以下之一:
这是一些原因及其解决方案
由于这次 SDK 升级,iOS 10 现在是 FlutterFire 支持的最低版本。请更新您的构建目标版本。
解决方案:
转到ios/Podfile项目中的文件,然后取消注释?
# platform :ios, '9.0'
Run Code Online (Sandbox Code Playgroud)
然后把版本改成10?
platform :ios, '10.0'
Run Code Online (Sandbox Code Playgroud)
然后返回ios/目录并pod install在终端中运行并再次尝试构建。
您Podfile.lock的 iOS 或 macOS 目录中的版本已过时并锁定为旧版本的 Firebase iOS SDK,而新升级的 FlutterFire 软件包可能使用这些 SDK 的较新版本。
解决方案:删除Podfile.lock文件并再次尝试构建。此文件将在下一个pod install.
您的 pod 规格存储库已过时,这意味着本地 CocoaPods 不知道最近发布的任何潜在更新版本的 Firebase iOS SDK。
解决方案:返回ios/目录并pod repo update在终端中运行并再次尝试构建。
小智 14
pod update
Run Code Online (Sandbox Code Playgroud)
应该做到的。别客气 :-)
sta*_*Man 12
我遇到了类似的错误:
找到了满足“firebase_auth(来自“.symlinks/plugins/firebase_auth/ios”)依赖项的规范,但它们需要更高的最低部署目标。
根据其他答案,我去了Podfile& 更新:
# platform :ios, '9.0'platform :ios, '13.0'然后再次尝试flutter run,但这次卡在了:
Running Xcode build...。
等待是不自然的,我的耐心逐渐消失,所以我放弃了这个改变并寻找另一个解决方案。
flutter cleanflutter pub getflutter run无需修改Podfile即可指定最小 ios 目标
如果您在 Mac M1(苹果硅胶芯片)上运行,请尝试运行以下命令:
arch -x86_64 pod install --repo-update
Run Code Online (Sandbox Code Playgroud)
小智 7
我有一个类似的问题。将 Project、Target 和 Podfile 设置为 iOS 12 并失败。
这是我的 Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '12.0'
use_frameworks!
abstract_target 'all_pods' do
pod 'Alamofire'
pod 'AlamofireImage'
pod 'AlamofireNetworkActivityIndicator'
pod 'Atributika'
pod 'AXPhotoViewer'
pod 'Cache'
pod 'Crashlytics'
pod 'Fabric'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Google-Mobile-Ads-SDK'
pod 'GTMNSStringHTMLAdditions'
pod 'KVLoading'
pod 'MGSwipeTableCell'
pod 'ReachabilitySwift'
pod 'SDCAlertView'
pod 'SideMenuSwift'
pod 'SwiftyJSON'
pod 'SwiftyUserDefaults'
pod 'UIImageViewAlignedSwift'
target 'Test Poject' do
# all_pods
end
end
Run Code Online (Sandbox Code Playgroud)
首先解体以确保
吊舱解体
运行强制回购更新
pod install --repo-update
Updating local specs repositories
$ /usr/bin/git -C /Users/XYZ/.cocoapods/repos/master fetch origin --progress
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 9 (delta 6), reused 0 (delta 0), pack-reused 0
From https://github.com/CocoaPods/Specs
8b2bcbd42ee..f72b5a3a02a master -> origin/master
$ /usr/bin/git -C /Users/XYZ/.cocoapods/repos/master rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/XYZ/.cocoapods/repos/master reset --hard origin/master
HEAD is now at f72b5a3a02a [Add] DSJSONSchemaValidation 2.0.4
CocoaPods 1.6.0.beta.1 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.6.0.beta.1
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In Podfile:
Firebase/Core
Specs satisfying the `Firebase/Core` dependency were found, but they required a higher minimum deployment target.
CocoaPods could not find compatible versions for pod "GoogleUtilities/MethodSwizzler":
In Podfile:
Firebase/Core was resolved to 5.8.0, which depends on
FirebaseAnalytics (= 5.1.2) was resolved to 5.1.2, which depends on
GoogleUtilities/MethodSwizzler (~> 5.2.0)
Specs satisfying the `GoogleUtilities/MethodSwizzler (~> 5.2.0)` dependency were found, but they required a higher minimum deployment target.
Run Code Online (Sandbox Code Playgroud)
对于配备 M1 芯片 (2022) 的 Mac:
到底用了什么伎俩:
platform :ios, '9.0'为platform :ios, '11.0'您的Podfile文件中<project>/ios/arch -x86_64 pod install --repo-update在您的终端 ( <project>/ios/)所有依赖项和 Pod 将被安装!
享受 !
| 归档时间: |
|
| 查看次数: |
6199 次 |
| 最近记录: |