roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
404 stars 332 forks source link

I've got this error on iOS: "Module 'flutter_facebook_login' not found" #241

Open SAAVY-ware opened 4 years ago

SAAVY-ware commented 4 years ago

anyone can help me?

lekaha commented 4 years ago

Same issue. Need help for this.

Running pod install...                                              4.3s
Running Xcode build...                                                  

 └─Compiling, linking and signing...                         1.0s
Xcode build done.                                           29.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    /app/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'flutter_facebook_login' not found
    @import flutter_facebook_login;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    /app/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'flutter_facebook_login' not found
    @import flutter_facebook_login;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning build
    note: Constructing build description

Encountered error while building for device.

Flutter version

Flutter 1.15.4-pre.83 • channel master • https://github.com/flutter/flutter.git
Framework • revision ec9813a500 (2 days ago) • 2020-02-16 19:15:52 -0800
Engine • revision d60f298d9e
Tools • Dart 2.8.0 (build 2.8.0-dev.9.0 edd64e6d5c

pubspec.yaml

environment:
  sdk: ">=2.1.0 <3.0.0"
dependencies:
  flutter:
    sdk: flutter
  flutter_facebook_login: ^3.0.0
lekaha commented 4 years ago

@SAAVY-ware Hey, not sure if you stuck there. I was able to solve by clean up Flutter. This is what I did FYI,

// Clean up
rm -rf ios/Pods
rm ios/Podfile
rm ios/Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData/
flutter clean

// Rebuild
flutter packages upgrade
flutter run

// Edit ios/Podfile and comment out the following line
# use_frameworks!

// Run again
flutter run

When I had this issue I was trying to remove this plugin from my project and still have Module X not found issue on the other plugin.

I think it is not related to this plugin, can close this issue.