Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: CocoaPods not installed. Skipping pod install. #415

Closed
Luzzotica opened this issue May 4, 2022 · 3 comments
Closed

Warning: CocoaPods not installed. Skipping pod install. #415

Luzzotica opened this issue May 4, 2022 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@Luzzotica
Copy link

Luzzotica commented May 4, 2022

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 Luzzotica added the bug Something isn't working label May 4, 2022
@leoafarias
Copy link
Owner

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

@Luzzotica
Copy link
Author

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

@stale
Copy link

stale bot commented Dec 2, 2022

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 stale bot added the wontfix This will not be worked on label Dec 2, 2022
@stale stale bot closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants