fvm
fvm copied to clipboard
Warning: CocoaPods not installed. Skipping pod install.
Describe the bug While building for iOS, I receive the following error:
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
Exception: CocoaPods not installed or not in valid state.
To Reproduce Steps to reproduce the behavior:
- Create a new flutter project:
flutter create swag && cd swag
- Run
fvm use stable
-
fvm flutter pub add mobile_scanner
-> This will force the ios project to have a pod file - Update ios/Podfile to have
platform :ios, '11.0'
-
fvm flutter run
- Get the nice error above
-
flutter run
app runs just fine
Expected behavior
Detect that CocoaPods is installed, or run pod install when it is not, as a normal flutter run
does.
Logs Let me know if these are necessary, I don't think so.
Desktop (please complete the following information):
- OS: MacOS Monterey, 12.2.1
- FVM Version: 2.4.1
- Phone OS: iOS 15.5
Additional context Fixing all warning in the Podfile install doesn't resolve the issue.
@Luzzotica does the command run correctly when calling flutter directly?
@leoafarias Yes, running normally works as intended. I have updated the original post with a way to reproduce the error.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.