I am try add facebook login to Flutter app. I am use flutter_facebook_login
. But when I try build for iOS give error:
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit":
In Podfile:
flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`) was resolved to 0.0.1, which depends on
FBSDKLoginKit (= 4.39.1)
None of your spec sources contain a spec satisfying the dependency: `FBSDKLoginKit (= 4.39.1)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Error running pod install
Error launching application on iPhone X.
I no install pod manually because flutter_facebook_login
readme say:
(Note: you can skip "Step 2: Set up Your Development Environment").
Anyone help? Thanks!
According to this diegoveloper's answer flutter_facebook_login github issue.
https://github.com/roughike/flutter_facebook_login/issues/201
flutter clean
ios/Podfile.lock
filePodfile
file and changed from platform :ios, '9.0'
to platform :ios, '11.0'
(In my case, some libs don't support 11.0 and I use
platform :ios, '9.0
then set deployment target in runner.xcsworkspace to 9.0 and it work.)ios
directory and run pod install
just update your podfile .
platform :ios, '11.0'
try to pod install again in terminal. pod install
cd the_root_package_path
flutter clean
podfile
and uncomment : # platform :ios, '11.0'
pod install
had the same problem, tried everything, this worked for me.
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