実現したいこと
- Flutterの環境構築
前提
ここの通りに構築していました。
発生している問題・エラーメッセージ
flutter doctor
を打つと以下のようなメッセージが出力されます。
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.0 23A344 darwin-arm64, locale ja-JP) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [!] Xcode - develop for iOS and macOS (Xcode 15.1) ✗ 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. To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.84.2) [✓] Connected device (2 available) [✓] Network resources
試したこと
案内されたURLでインストールし直す:
% sudo gem install cocoapods Password: Successfully installed cocoapods-1.14.3 Parsing documentation for cocoapods-1.14.3 Done installing documentation for cocoapods after 0 seconds 1 gem installed
効果なし。
homebrewを用いてインストール:
% brew install cocoapods ==> Downloading https://formulae.brew.sh/api/formula.jws.json ==> Downloading https://formulae.brew.sh/api/cask.jws.json Warning: Treating cocoapods as a formula. For the cask, use homebrew/cask/cocoapods Warning: cocoapods 1.14.3 is already installed and up-to-date. To reinstall 1.14.3, run: brew reinstall cocoapods
効果なし。
pod setup
してみる:
[BUG] Segmentation fault at 0x0000000029326620 ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [-darwin23] -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports for more details. Don't forget to include the above Crash Report log file in bug reports. ... zsh: abort pod setup
クラッシュしました。クラッシュレポートは長いので割愛します。当然効果なし。
補足情報(FW/ツールのバージョンなど)
OS: macOS Sonoma Ver.14.0
chip: Apple M2

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2023/12/25 01:41
2023/12/25 02:07
2023/12/26 04:45