install cocoapods and ruby on macbook pro M1 - resolve issue with flutter

preview_player
Показать описание
Installing Cocoapods on Macbook Pro M1 can be a challenge. Here I discuss how to resolve your issue and get your Flutter App running on iPhone (real device and not the emulator).

The URL in the video that resolve the issue is

Errors that you will get that re related to this are
Flutter Debug: Warning: CocoaPods not installed. Skipping pod install

CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with
is different from the one being used to invoke it.
This can usually be fixed by re-installing Cocoapods.

Ruby permission error on Monterey OS

Steps to Resolve (in case the original post is no longer available)
---------------------------------------
Right clic Terminal from the Application/Utilities folder, Get Info, tick the "Open using Rosetta" box.
Uninstall Homebrew
rm -rf /opt/homebrew/*
sudo rm -rf /opt/homebrew
Reinstall Homebrew
Restart terminal
Check Homebrew is working fine: brew doctor
Reinstall openssl: brew install openssl
Install Ruby: rvm install 2.7 Or any version
Рекомендации по теме
Комментарии
Автор

brother..
while i try install new plugins in a flutter project i run into issue with cocoapods..
although cocoapods have been installed properly as i do flutter doctor -v ..
inside project it says setpup cocoapods for macos..
install cocoapods failed...any idea ?

angelsureshkarki
Автор

So if you're installing from a terminal set for Rosetta, do you also need to set VScode (or Xcode/Android studio) for rosetta as well when running flutter?

simmermusic
Автор

Thats not the issue...there is a complete different issue...my cocoapods work fine..but when it project i install plugin and install pods there is an error.

angelkarki
Автор

One of the most horrible installation videos I have ever seen I didn't understand anything and nothing was clear at all

abdoabusnena
visit shbcf.ru