在连接了Firebase之后无法运行Flutter应用程序。
在连接了Firebase之后无法运行Flutter应用程序。
我在xcode的Runner项目中添加了GoogleService-Info.plist
文件后,我收到了这个错误。(我用的是M1芯片的MacBook Air)
我卸载了每个cocoapods版本,然后使用ARM版本重新安装了(sudo arch -x86_64 gem install cocoapods
),但什么也没有改变。
编辑: 刚刚在ios文件夹内尝试了pod install
方法,发生了以下情况;
Analyzing dependencies cloud_firestore: Using Firebase SDK version '8.11.0' defined in 'firebase_core' firebase_auth: Using Firebase SDK version '8.11.0' defined in 'firebase_core' firebase_core: Using Firebase SDK version '8.11.0' defined in 'firebase_core' [!] CocoaPods could not find compatible versions for pod "cloud_firestore": In Podfile: cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target. [!] Automatically assigning platform `iOS` with version `9.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`.
admin 更改状态以发布 2023年5月20日