hive
hive copied to clipboard
Cannot Get Hive to Work - Flutter/M1 Mac
Question I am trying to follow along with a short tutorial that introduces Hive within a small Flutter project. I am using the latest version of Flutter on an M1 MacBook Pro, and have included the necessary dependencies in the pubspec.yaml file. When I build the project in VS Code, I get an error to the effect of, "Cocoapods not installed. Skipping pod install....Cocoapods not installed or not in valid state."
I did some searching on StackOverflow and found instructions to delete cocoapods (sudo gem uninstall cocoapods) and reinstall using Homebrew (brew install cocoapods). I've done these things and run flutter clean, flutter pub get, etc. Still getting the error when I try to build the project in VS Code.
I was able to successfully build and run the project by opening it directly in Xcode.
Version
- Platform: VS Code / Flutter / Mac M1
- Flutter version: 3.0.2-0.0.pre.1
- Hive version: 2.2.3