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 badges3 Answers
Reset to default 5Run 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"
}
}