首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cocoapods问题

Cocoapods问题
EN

Stack Overflow用户
提问于 2022-10-28 13:33:32
回答 2查看 67关注 0票数 0

来自CocoaPods:↳的Podfile``↳错误输出

代码语言:javascript
复制
[!] The FlutterFire plugin cloud_firestore for macOS requires a macOS
deployment target of 10.12 or later.

异常:运行吊舱安装时出错

代码语言:javascript
复制
Hi, I've been stuck on this problem for a while, I'm trying to connect my flutter app with firebase but as soon as I put firestore on I have this problem. I modified the podfile file by putting the right version but nothing is done. I followed a lot of tutorials but none solved my problem. so please i need help.

I created my database on firebase, I configured it with xcode

Cocaopods version : 1.11.3

firebase_core: ^2.1.1

cloud_firestore: ^4.0.3

platform :ios, '12.0'


Podfile : 

  [1]: https://i.stack.imgur.com/fYqSZ.png
EN

回答 2

Stack Overflow用户

发布于 2022-11-16 11:03:51

查看macOS文件夹中Podfile的第一行。如果如下所示:platform :osx, '10.11',则将其更改为所需的MACOS_DEPLOYMENT_TARGET

票数 0
EN

Stack Overflow用户

发布于 2022-11-22 08:41:51

我解决了这个问题。

以下是小贴士:

  1. 运行Xcode ->单击Runner ->更改“最低部署”f.e中的版本。到11.0或更高版本的

  1. 转到Visual代码->转到'macos‘文件夹-->单击'podfile’->更改与平台中的Xcode相同的版本:osx,'11.0'

  1. 重新启动应用程序,然后重新调试.

(请让我知道它是否有效:)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74236205

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档