我尝试添加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
自述文件说:
(注意:您可以跳过“步骤2:设置开发环境”)。
有人帮吗?谢谢!
我前一段时间遇到过这个问题,我可以通过手动方法解决这个问题。确保你的pubspec.yaml
flutter_facebook_login: ˆ2.0.0
声明并获得了。
在你的项目中qazxsw poi导航到qazxsw poi> qazxsw poi> root directory
> ios
> .symlinks
> plugins
你将改变flutter_facebook_login
内的一些字段。
ios
和
flutter_facebook_login.podspec
在你的项目的flutter_facebook_login.podspec
目录下的osx框中运行s.version = '2.0.0'
和s.dependency 'FBSDKLoginKit', '~> 4.29'
返回到根项目目录运行ios
并尝试再次构建你的项目。
这是我的pod deintegrate
的一个例子,它适用于我的一个项目。我希望它有所帮助。
pod update