tensorflow / flutter-tflite

Apache License 2.0
460 stars 124 forks source link

[!] No podspec found for `flutter_tflite` in `.symlinks/plugins/flutter_tflite/ios` #192

Open alimcevik opened 7 months ago

alimcevik commented 7 months ago

I cannot install pod in Flutter 3.16.7:

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

$flutter run
Changing current working directory to: /Users/alimcevik/Documents/GitHub/[PROJECTNAME]
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running pod install...                                             425ms
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `flutter_tflite` from `.symlinks/plugins/flutter_tflite/ios`
    [!] No podspec found for `flutter_tflite` in `.symlinks/plugins/flutter_tflite/ios`

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/external_sources/path_source.rb:14:in `block in fetch'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:997:in `fetch_external_source'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:976:in `block (2 levels) in fetch_external_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:975:in `each'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:975:in `block in fetch_external_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:974:in `fetch_external_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:422:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/installer.rb:162:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.13.0/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'

Error running pod install
Error launching application on iPhone 14 Pro Max.

Version info:

$ flutter --version
Flutter 3.16.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ef1af02aea (3 weeks ago) • 2024-01-11 15:19:26 -0600
Engine • revision 4a585b7929
Tools • Dart 3.2.4 • DevTools 2.28.5

These methods did not work:

flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile
cd ios
pod deintegrate
rm -f Podfile.lock
flutter packages get
pod install --repo-update

and

flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile
flutter pub get
cd ios
pod install
pod setup
flutter run
jihuncha commented 6 months ago

Same issue to me. Any update??

justoverclockl commented 6 months ago

same issue here

PrinzWillyM commented 5 months ago

+1

yl9111524 commented 4 months ago

I have same situation too, but I solve it.

this problem because macos's folder permission you can try this.

sudo chown -R $(whoami) /Users/{user}/.pub-cache

furkandemir29 commented 4 months ago

+1

dcarpencu commented 4 months ago

+1

dudago2 commented 4 months ago

+1

emrullahkeles commented 3 months ago

+1

mrpuryansyah commented 3 months ago

+1