Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter fatal error: module 'FBSDKCoreKit' not found

Tags:

ios

flutter

I'm using flutter_facebook_login 3.0.0

I got this error when i tried to run my app

** BUILD FAILED ** Xcode's output: ↳ In file included from /Users/*****/*****/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m:21: In file included from /Users/*****/*****/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h:19: In file included from /Users/*****/*****/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/../FBSDKLoginKit.h:27: /Users/*****/*****/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:24:9: fatal error: module 'FBSDKCoreKit' not found @import FBSDKCoreKit;

for the simulator. Error launching application on iPhone 8.
like image 345
dmarquina Avatar asked Dec 18 '22 14:12

dmarquina


2 Answers

I have managed to solve this issue by changing the Podfile

target 'Runner' do
# flutter Pod
use_frameworks!
use_modular_headers!
------

flutter clean

Delete Podfile.lock

pod install --repo-update

pod update FBSDKLoginKit

Run

flutter clean && cd ios && sudo rm Podfile.lock && pod install --repo-update && pod update FBSDKLoginKit

open .xcworkspace and in General-> Deployment Info set Target 11.0 also in Podfile set Target 11.0

like image 144
Gursewak Singh Avatar answered Dec 20 '22 03:12

Gursewak Singh


Until now the only way that worked for me was this

You will have to override Podfile.lock with 5.8.0 version of Facebook SDK.

PODS:
  - FBSDKCoreKit (5.8.0):
    - FBSDKCoreKit/Basics (= 5.8.0)
    - FBSDKCoreKit/Core (= 5.8.0)
  - FBSDKCoreKit/Basics (5.8.0)
  - FBSDKCoreKit/Core (5.8.0):
    - FBSDKCoreKit/Basics
  - FBSDKLoginKit (5.8.0):
    - FBSDKLoginKit/Login (= 5.8.0)
  - FBSDKLoginKit/Login (5.8.0):
    - FBSDKCoreKit (~> 5.0)
  - Flutter (1.0.0)
....
like image 34
dmarquina Avatar answered Dec 20 '22 03:12

dmarquina