最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - `FirebaseInstallations` requires CocoaPods version `>= 1.12.0`, Build failed: Your project requires a newer

programmeradmin1浏览0评论

In my react native project, when I run eas build --platform ios I get this error below

[!] `FirebaseInstallations` requires CocoaPods version `>= 1.12.0`, which is not satisfied by your current version, `1.11.3`.

Build failed: Your project requires a newer version of CocoaPods. You can update it in the build profile in eas.json by either:
- changing the current version under key "cocoapods"
- switching to an image that supports that version under key "image"

I have run sudo gem install cocoapods and pod --version says 1.15.2

also run Cd ios, pod deintegrate, npx pod-install

I have also updated my eas.json

"ios": {
       "buildConfiguration": "Debug",
       "cocoapods": "1.15.2"
     }

But I'm still getting the same error when building for IOS

In my react native project, when I run eas build --platform ios I get this error below

[!] `FirebaseInstallations` requires CocoaPods version `>= 1.12.0`, which is not satisfied by your current version, `1.11.3`.

Build failed: Your project requires a newer version of CocoaPods. You can update it in the build profile in eas.json by either:
- changing the current version under key "cocoapods"
- switching to an image that supports that version under key "image"

I have run sudo gem install cocoapods and pod --version says 1.15.2

also run Cd ios, pod deintegrate, npx pod-install

I have also updated my eas.json

"ios": {
       "buildConfiguration": "Debug",
       "cocoapods": "1.15.2"
     }

But I'm still getting the same error when building for IOS

Share Improve this question asked Mar 7, 2024 at 16:01 mannymanny 41511 silver badges24 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 5

Run brew upgrade cocoapods mand.

If that doesn't work try brew install cocoapods

I face similar challenge. If anyone is still facing same. what following the suggestion of @Rashmi Rekha above.

after running brew install cocoapods to get the lastest version of cocoapods installed on my Mac.

I still had to get it linked. To do that, I just ran the following mand

brew link --overwrite cocoapods

the --overwrite tag is to force overwrite all conflicting files. if for any reason they aren't any, you could just run:

brew link cocoapods

I hope this helps.

I found that I had to add "cocoapods": "1.15.2" under build.production and I only had it under build.development so for it to work, it should look something like this:

 "build": {
 "production": {
      "ios": {
        "cocoapods": "1.15.2"
      },
      "channel": "production"
    }
}

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论