can't find gem cocoapods = 0 a with executable pod flutter pod install

Опубликовано: 16 Октябрь 2024
на канале: Chhaileng Tim
2,347
13

can't find gem cocoapods = 0 a with executable pod flutter pod install

It seems like there is a typo in the command you provided. The correct command to install CocoaPods with a specific version would be:

sudo gem install cocoapods -v 0.x.x

Replace "0.x.x" with the specific version of CocoaPods you want to install. Note that you need to run this command in the Terminal, not in Flutter's pod install command.

After installing the desired version of CocoaPods, you can run the pod install command in your Flutter project's ios directory to install the necessary dependencies for your project.

I just start a react-native project. However, this question had me for a day. I tried all possible way to solve it. For example,

sudo gem uninstall cocoapods
rvm uninstall
brew install cocoapods

To answer Bundle Install, what happens is, when generating react native project the configuration is set to default mac gem version. If you have updated gem version on your mac the project configuration could not pick the correct gem version. thats why it throws the can't find gem cocoapods.