0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac(catalina)でflutter doctorを実行すると『✗ CocoaPods installed but not working.』と怒られる

Posted at

不具合内容

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
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?