I use Flutter and I want to test my app on an iPhone emulator or on an iPhone. I get the error to install Cocoapods. When I try to install Cocoapods I get the following error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.