blue492
blue492

Reputation: 670

Flutter ios No podspec found for `flutter_keyboard_visibility_web` in

Iam using Flutter in Mac -> Android studio and when I write pod install in the terminal. It show me

Analyzing dependencies
[!] No podspec found for `flutter_keyboard_visibility_web` in .symlinks/plugins/flutter_keyboard_visibility_web/ios`

Iam using flutter from one year ago, It is the first time it happen for me. I cannot run the app. I dont have a plugin with this name flutter_keyboard_visibility_web in pubspec

How to fix it, thanks

Upvotes: 12

Views: 22677

Answers (4)

blue492
blue492

Reputation: 670

The solution is:

1- Delete Podfile and Podfile.lock from ios folder

2- Flutter clean either from terminal or from Android studio -> Tools -> Flutter -> Flutter Clean

3- Run flutter pub get

4- Pod install

5- Run the app

The solution is here: https://github.com/MisterJimson/flutter_keyboard_visibility/issues/52

Upvotes: 15

Alexander K
Alexander K

Reputation: 1

I had the same issue and tried many approaches. What worked for me was:

  • Delete Podfile.lock in the IOS folder.
  • Removed all packages in the pubspec.yaml (cmd + x)
  • Saved the project
  • Added all packages again (cmd + v)
  • Saved again
  • Run pod install inside the ios folder via terminal command

Afterwards the app started running again.

Upvotes: 0

Dananjaya
Dananjaya

Reputation: 669

I know this is quite old. But I got the same error today for the app it self. This is happen after I updated my project to latest flutter version 3.13.6. Probably a flutter bug.

Error:

[!] No podspec found for `MY_APP` in `.symlinks/plugins/tournament_viewer_flutter/ios

So after an hours of failing, finally I decided to make a dummy podspec file under ios folder.

I made a copy of ios/Flutter/Flutter.podspec file to ios/MY_APP.podspec and change the content as follow (you can change values to yours. This is only a reference).

Pod::Spec.new do |s|
  s.name             = 'MY_APP'
  s.version          = '1.0.0'
  s.summary          = 'MY APP'
  s.homepage         = 'site link with https'
  s.license          = { :type => 'BSD' }
  s.author           = { 'MY TEAM' => '[email protected]' }
  s.source           = { :git => '', :version => s.version.to_s }
  s.ios.deployment_target = '11.0'
  # Framework linking is handled by Flutter tooling, not CocoaPods.
  # Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
  s.vendored_frameworks = 'path/to/nothing'
end

Upvotes: 1

molive
molive

Reputation: 23

I had the same issue, but I cleared cache on IntelliJ and it started working again.

To do this on IntelliJ:

  1. From the main menu, select File | Invalidate Caches / Restart.
  2. In the Invalidate Caches dialogue, select an invalidate the caches and restart the IDE.

Upvotes: 0

Related Questions