No matter what I do, flutter doctor always returns:
[!] Xcode - develop for iOS and macOS (Xcode 13.3)
• Xcode at /Volumes/ssd/Applications/Xcode.app/Contents/Developer
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
when I run
$ gem install cocoapods
I get: ERROR: While executing gem ... (Errno::EACCES) Permission denied @ dir_s_mkdir - /Users/omkar/.local/share/gem/specs
I tried using
$ sudo chown -R /Users/omkar/.local/share/gem/*
Password:
But I got: usage: chown [-fhnvx] [-R [-H | -L | -P]] owner[:group] file ... chown [-fhnvx] [-R [-H | -L | -P]] :group file ...
and the issue of no permission still persists.
How can I give the required permission?
More info: I have followed this answer to install brew and following is the output:
$ which ruby
/usr/local/opt/ruby/bin/ruby
$ ruby -v
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-darwin21]