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.
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
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)
....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With