fvm icon indicating copy to clipboard operation
fvm copied to clipboard

Warning: CocoaPods not installed. Skipping pod install.

Open Luzzotica opened this issue 2 years ago • 2 comments

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:

  1. Create a new flutter project: flutter create swag && cd swag
  2. Run fvm use stable
  3. fvm flutter pub add mobile_scanner -> This will force the ios project to have a pod file
  4. Update ios/Podfile to have platform :ios, '11.0'
  5. fvm flutter run
  6. Get the nice error above
  7. 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 avatar May 04 '22 17:05 Luzzotica

@Luzzotica does the command run correctly when calling flutter directly?

leoafarias avatar May 04 '22 17:05 leoafarias

@leoafarias Yes, running normally works as intended. I have updated the original post with a way to reproduce the error.

Luzzotica avatar Jul 27 '22 16:07 Luzzotica

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.

stale[bot] avatar Dec 02 '22 20:12 stale[bot]