roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
405 stars 331 forks source link

Xcode build failed #126

Open tomadimitrie opened 5 years ago

tomadimitrie commented 5 years ago

Both FBSDKCoreKit and FBSDKLoginKit are on the latest versions (5.0.0).

Xcode's output (only relevant lines shown):

/Users/toma/Developer/flutter/.pub-cache/git/flutter_facebook_login-45eb9e261b0cc9e05c5c3f243f4f736a3c9ff6ef/ios/Classes/FacebookLoginPlugin.m:85:12: error: use of undeclared identifier 'FBSDKLoginBehaviorNative'; did you mean 'FBSDKLoginBehaviorBrowser'?
    return FBSDKLoginBehaviorNative;
           ^~~~~~~~~~~~~~~~~~~~~~~~
           FBSDKLoginBehaviorBrowser
In module 'FBSDKLoginKit' imported from /Users/toma/Developer/flutter/.pub-cache/git/flutter_facebook_login-45eb9e261b0cc9e05c5c3f243f4f736a3c9ff6ef/ios/Classes/FacebookLoginPlugin.m:3: /Users/toma/Developer/Antimony-Flutter/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h:90:3: note: 'FBSDKLoginBehaviorBrowser' declared here
FBSDKLoginBehaviorBrowser = 0,
^
/Users/toma/Developer/flutter/.pub-cache/git/flutter_facebook_login-45eb9e261b0cc9e05c5c3f243f4f736a3c9ff6ef/ios/Classes/FacebookLoginPlugin.m:89:12: error: use of undeclared identifier 'FBSDKLoginBehaviorWeb'; did you mean 'FBSDKLoginBehaviorBrowser'?
    return FBSDKLoginBehaviorWeb;
           ^~~~~~~~~~~~~~~~~~~~~
           FBSDKLoginBehaviorBrowser
In module 'FBSDKLoginKit' imported from /Users/toma/Developer/flutter/.pub-cache/git/flutter_facebook_login-45eb9e261b0cc9e05c5c3f243f4f736a3c9ff6ef/ios/Classes/FacebookLoginPlugin.m:3:
/Users/toma/Developer/Antimony-Flutter/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h:90:3: note: 'FBSDKLoginBehaviorBrowser' declared here
FBSDKLoginBehaviorBrowser = 0,
^
danysz commented 5 years ago

+1

matthewrice345 commented 5 years ago

+1

pdefuns commented 5 years ago

+1

danysz commented 5 years ago

I solved the issue by forcing the use of the "old" version :

Inside the Podfile I added

target 'Runner' do
  use_frameworks!

  pod 'FBSDKCoreKit', '~> 4.39.1'

Of course after adding I cleaned everything including the Podfile.lock and the Pods project

This is not a reliable solution but for the moment is working.

adrhem commented 5 years ago

Still doesn't work even with the fix of @danysz .

Pod: 1.7.5

Flutter 1.7.8+hotfix.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision 20e59316b8 (4 weeks ago) • 2019-07-18 20:04:33 -0700 Engine • revision fee001c93f Tools • Dart 2.4.

Xcode: Version 10.3

flutter_facebook_login: ^2.0.1

Log: project/ios/Runner/GeneratedPluginRegistrant.m:6:9: 'flutter_facebook_login/FacebookLoginPlugin.h' file not found

debaosuidecl commented 4 years ago

any solution on this yet?