Flutter_facebook_login: Xcode 10.2.1 build error

Created on 2 May 2019  路  8Comments  路  Source: roughike/flutter_facebook_login

The project is work fine in Android, but it get error when i build the same project in xcode.
I am using flutter_facebook_login 1.2.0

Following are the errors

/Users/builder/clone/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.m:148:31: error: no known class method for selector 'extractPermissionsFromResponse:grantedPermissions:declinedPermissions:'

 [FBSDKInternalUtility extractPermissionsFromResponse:permissionResult
                       ^~~~~~~~~~~~

/Users/builder/clone/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.m:151:67: error: no visible @interface for 'FBSDKAccessToken' declares the selector 'initWithTokenString:permissions:declinedPermissions:appID:userID:expirationDate:refreshDate:dataAccessExpirationDate:'

 FBSDKAccessToken *accessToken = [[FBSDKAccessToken alloc] initWithTokenString:tokenString
                                  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 errors generated.

Most helpful comment

same problem. just solved that.

  1. edit flutter_facebook_login.podspec in .pub-cache directory , change the content to be following:
    s.dependency 'FBSDKLoginKit', '4.39.1'
    s.dependency 'FBSDKCoreKit', '4.39.1' #<---add this, keep the same version with loginkit
  2. pod update FBSDKLoginKit
  3. pod deintegrate
  4. pod install

All 8 comments

same problem. just solved that.

  1. edit flutter_facebook_login.podspec in .pub-cache directory , change the content to be following:
    s.dependency 'FBSDKLoginKit', '4.39.1'
    s.dependency 'FBSDKCoreKit', '4.39.1' #<---add this, keep the same version with loginkit
  2. pod update FBSDKLoginKit
  3. pod deintegrate
  4. pod install

Hi Amao,
Thank you for your solution, it works!!!

+1

It looks like this PR should fix the issue - https://github.com/roughike/flutter_facebook_login/pull/124

@amao where i can find this flutter_facebook_login.podspec so i can edit this file for me too.

@Anuraag93 .pub-cache can be found inside Flutter directory as a hidden folder. There you will find flutter_facebook_login files as well the .podspec one.

I am able to find flutter_facebook_login.podspec.json!
Should I append the file? with:
s.dependency 'FBSDKLoginKit', '4.39.1'
s.dependency 'FBSDKCoreKit', '4.39.1'
Please guide.. @amao , @E-Franco @mis0025033

@jeeali the related bug was fixed on version 2.0.1. I suggest you to update your pubspec.
But if you still in earlier versions, make sure to set LoginKit and CoreKit to same version (4.39.1).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fayaz07 picture fayaz07  路  4Comments

deckerst picture deckerst  路  4Comments

brianschardt picture brianschardt  路  7Comments

premtemp1 picture premtemp1  路  5Comments

nsmith1024 picture nsmith1024  路  6Comments