尝试构建FBSDK Flutter ios时生成错误

问题描述 投票:3回答:1

尝试设置facebook SDK for flutter iOS但不断收到此错误。

SDK适用于Android

试图清理代码并重新安装

/Users/abdi/Documents/project-philotes/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m:223:49: error: property 'isActive' not found on object of type 'FBSDKApplicationDelegate *'
  if ([FBSDKApplicationDelegate sharedInstance].isActive) {
                                                ^
/Users/abdi/Documents/project-philotes/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m:272:10: error: use of undeclared identifier 'FBSDKSystemAccountStoreAdapter'
        [FBSDKSystemAccountStoreAdapter sharedInstance].forceBlockingRenew = YES;

期待为模拟器构建的应用程序

facebook dart flutter
1个回答
5
投票

我有同样的问题,它与Facebook pod版本有关。尝试使用我的fork,编辑你的pubspec.yaml文件并添加这个依赖项:

      flutter_facebook_login:
        git: https://github.com/diegoveloper/flutter_facebook_login.git
© www.soinside.com 2019 - 2024. All rights reserved.