Flutter_facebook_login: compiler message: Error: Could not resolve the package 'flutter_facebook_login' in 'package:flutter_facebook_login/flutter_facebook_login.dart'

Created on 12 Dec 2018  路  3Comments  路  Source: roughike/flutter_facebook_login

Hello and good day,

I have tried using this Facebook plugin. It works perfectly on android. Unfortunately, when I build IOS, it is getting this error

compiler message: Error: Could not resolve the package 'flutter_facebook_login' in 'package:flutter_facebook_login/flutter_facebook_login.dart'

The error runs through FBSDKLoginKit outdated. I am using a FBSDKLoginKit before but Im not sure why it is showing me this error when I used the plugin. Anyways, I tried to do a clean pod install on my machine by:

rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
pod install

It gets the latest FBSDKLoginKit which is 4.39
But when I run my build, it goes back to 4.28
Im not even sure if this is related issue.

compiler message: Error: Could not resolve the package 'flutter_facebook_login' in 'package:flutter_facebook_login/flutter_facebook_login.dart'.
build   11-Dec-2018 20:38:37        compiler message: package:flutter_facebook_login/flutter_facebook_login.dart: Error: Not found: package:flutter_facebook_login/flutter_facebook_login.dart.
build   11-Dec-2018 20:38:37        Compiler terminated unexpectedly.
build   11-Dec-2018 20:38:37        cp: build/aot/App.framework: No such file or directory

Please enlighten me on this.
Thanks

Most helpful comment

pod update

This fixes it for me. But also with: pod 'FBSDKLoginKit', '4.39.1'.

It seems that pod FBSDKLoginKit doesn't come as v4.39.1 by default but need to force it like this.

All 3 comments

I haven't encountered this one before, but I think it might be fixed now that I updated the Facebook Login SDK to the latest version. If not, feel free to comment and I'll reopen.

I'm having the same issue:

[!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit":
  In snapshot (Podfile.lock):
    FBSDKLoginKit (= 4.35.0)

  In Podfile:
    FBSDKLoginKit

    flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`) was resolved to 0.0.1, which depends on
      FBSDKLoginKit (= 4.39.1)

Specs satisfying the `FBSDKLoginKit, FBSDKLoginKit (= 4.35.0), FBSDKLoginKit (= 4.39.1)` dependency were found, but they required a higher minimum deployment target.

It's a clean install, not sure what to do here...

pod update

This fixes it for me. But also with: pod 'FBSDKLoginKit', '4.39.1'.

It seems that pod FBSDKLoginKit doesn't come as v4.39.1 by default but need to force it like this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianschardt picture brianschardt  路  7Comments

Ismaeils picture Ismaeils  路  6Comments

deckerst picture deckerst  路  4Comments

Sameerkash picture Sameerkash  路  3Comments

kaetemi picture kaetemi  路  4Comments