我尝试将Facebook登录名添加到Flutter应用中。我正在使用flutter_facebook_login
。但是当我尝试为iOS构建时给出错误:
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.
我没有手动安装pod,因为
flutter_facebook_login
自述文件说:(Note: you can skip "Step 2: Set up Your Development Environment").
有人帮忙吗?
谢谢!
最佳答案
根据这个diegoveloper的回答flutter_facebook_login github问题。
https://github.com/roughike/flutter_facebook_login/issues/201
flutter clean
ios/Podfile.lock
文件Podfile
文件,从platform :ios, '9.0'
更改为platform :ios, '11.0'
(就我而言,某些库不支持11.0,我使用平台:ios,'9.0
然后将runner.xcsworkspace中的部署目标设置为9.0,它就可以工作。)
ios
目录并运行pod install
关于facebook - flutter_facebook_login CocoaPods依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55596988/