Cannot Get Hive to Work - Flutter/M1 Mac
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Flutter project's pubspec.yaml and reproduce the VS Code build using Flutter 3.0.2-0.0.pre.1 on an M1 Mac. Compare the VS Code build path with the successful Xcode build, focusing on the reported CocoaPods installation-state error. Done means the project builds from VS Code without the CocoaPods error while retaining the listed Hive dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, macos, vscode
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100