不具合内容
MacでcocoapodsをインストールしているのにCocoaPodsが動かねえぞ!と怒られてしまいました。
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F101, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 11.6)
✗ 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. For more info, see
https://github.com/flutter/flutter/issues/14293.
To re-install CocoaPods, run:
sudo gem install cocoapods
[✓] Android Studio (version 4.0)
[!] Connected device
! No devices available
解決方法
そういえばなぜかflutterコマンドがsudoが無いと実行できなかったのでsudoなしで実行できるようにしました。
$ sudo chown -R $USER /(flutterをインストールしているディレクトリ)
上記のコマンドを実行後。動かねえぞ!というエラーメッセージは消えました。
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.6 19G73, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[!] Connected device
! No devices available