Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

fatal error: module 'FBSDKCoreKit' not found #214

Open
erolasan opened this issue Nov 12, 2019 · 15 comments
Open

fatal error: module 'FBSDKCoreKit' not found #214

erolasan opened this issue Nov 12, 2019 · 15 comments

Comments

@erolasan
Copy link

Hi, after i upgraded to 3.0.0 i started getting this error:

    ** BUILD FAILED **
Xcode's output:
↳
    In file included from /Users/erolasan/Work/lvlup/lvlupmobile/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m:21:
    In file included from /Users/erolasan/Work/lvlup/lvlupmobile/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h:19:
   In file included from /Users/erolasan/Work/lvlup/lvlupmobile/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/../FBSDKLoginKit.h:27:
    /Users/erolasan/Work/lvlup/lvlupmobile/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:24:9: 
fatal error: module 'FBSDKCoreKit' not found
    @import FBSDKCoreKit;
     ~~~~~~~^~~~~~~~~~~~
    1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone 8.

I've done a full clean/reset of Pods and pod cache, but error still shows

@FreAirLy
Copy link

I have the same problem!any guys can tell me how to do?

@atavci
Copy link

atavci commented Nov 14, 2019

I have managed to solve this issue by changing the Facebook Pod versions from 5.10.0 to 5.8.0 on the Podfile. The solution is from this issue, you can check it for more details.
My new Podfile looks like below.

PODS:
  - FBSDKCoreKit (5.8.0):
    - FBSDKCoreKit/Basics (= 5.8.0)
    - FBSDKCoreKit/Core (= 5.8.0)
  - FBSDKCoreKit/Basics (5.8.0)
  - FBSDKCoreKit/Core (5.8.0):
    - FBSDKCoreKit/Basics
  - FBSDKLoginKit (5.8.0):
    - FBSDKLoginKit/Login (= 5.8.0)
  - FBSDKLoginKit/Login (5.8.0):
    - FBSDKCoreKit (~> 5.0)
  - Flutter (1.0.0)
....

@arredgroup
Copy link

I have managed to solve this issue by changing the Facebook Pod versions from 5.10.0 to 5.8.0 on the Podfile. The solution is from this issue, you can check it for more details.
My new Podfile looks like below.

PODS:
  - FBSDKCoreKit (5.8.0):
    - FBSDKCoreKit/Basics (= 5.8.0)
    - FBSDKCoreKit/Core (= 5.8.0)
  - FBSDKCoreKit/Basics (5.8.0)
  - FBSDKCoreKit/Core (5.8.0):
    - FBSDKCoreKit/Basics
  - FBSDKLoginKit (5.8.0):
    - FBSDKLoginKit/Login (= 5.8.0)
  - FBSDKLoginKit/Login (5.8.0):
    - FBSDKCoreKit (~> 5.0)
  - Flutter (1.0.0)
....

Thanks!!!!

@raphaelsilvasage
Copy link

raphaelsilvasage commented Nov 20, 2019

Same problem here

@smourier
Copy link

smourier commented Nov 25, 2019

I don't think we should modify version and dependencies, the fix is just to add a FBSDKCOCOAPODS define so newer FBSDK compile fine.

See my related pull request here: #217

Unfortunately this pull request is still not accepted. What I personally did, in the mean time, is forked the solution and define my flutter dependency on my repo (which has the modification committed) like this in pubspec.yaml:

dependencies:
  flutter:
  ...
  flutter_facebook_login:
    git:
      url: https://github.com/smourier/flutter_facebook_login
  ...

@wmorrison1967
Copy link

This solution worked for me as well.

@BenBao93
Copy link

BenBao93 commented Dec 5, 2019

I am facing the same issue, unfortunately upgrading the pod version causes different errors for me.

@engmsaleh
Copy link

engmsaleh commented Dec 9, 2019

The solution of @atavci suggested worked finally for me, it seems that an issue with Facebook SDK itself.
I had to update the versions inside the Podfile.lock manually to the following

  - FBSDKCoreKit (5.8.0):
    - FBSDKCoreKit/Basics (= 5.8.0)
    - FBSDKCoreKit/Core (= 5.8.0)
  - FBSDKCoreKit/Basics (5.8.0)
  - FBSDKCoreKit/Core (5.8.0):
    - FBSDKCoreKit/Basics
  - FBSDKLoginKit (5.8.0):
    - FBSDKLoginKit/Login (= 5.8.0)
  - FBSDKLoginKit/Login (5.8.0):
    - FBSDKCoreKit (~> 5.0)
  - Flutter (1.0.0)
  - flutter_facebook_login (0.0.1):
    - FBSDKCoreKit (~> 5.5)
    - FBSDKLoginKit (~> 5.5)
    - Flutter```

I have changed all `FBSDK**` to `5.8.0`, You may need to call `pod update FBSDKCoreKit` in order to force the update of the PODs  

@ksheremet
Copy link

Looks like that's facebook/facebook-ios-sdk#1102 and the solution is to have

pod 'FBSDKCoreKit', :modular_headers => true

in this plugins' .podspec.

Until this is done, you can workaround by enabling modular_headers globally in your application's ios/Podspec file with

# Somewhere at the top of the file, I put it next to "platform :ios ..."

use_modular_headers!

@j05u3
Copy link

j05u3 commented Dec 13, 2019

Looks like that's facebook/facebook-ios-sdk#1102 and the solution is to have

pod 'FBSDKCoreKit', :modular_headers => true

in this plugins' .podspec.

Until this is done, you can workaround by enabling modular_headers globally in your application's ios/Podspec file with

# Somewhere at the top of the file, I put it next to "platform :ios ..."

use_modular_headers!

Sorry, this didn't work for me as it generated a conflict with other library (Boring-SSL) which is used by some Firebase library in my project.

@philipfeldmann
Copy link

Any news on this? I'm still running into this issue.

@dmarquina
Copy link

I have managed to solve this issue by changing the Facebook Pod versions from 5.10.0 to 5.8.0 on the Podfile. The solution is from this issue, you can check it for more details.
My new Podfile looks like below.

PODS:
  - FBSDKCoreKit (5.8.0):
    - FBSDKCoreKit/Basics (= 5.8.0)
    - FBSDKCoreKit/Core (= 5.8.0)
  - FBSDKCoreKit/Basics (5.8.0)
  - FBSDKCoreKit/Core (5.8.0):
    - FBSDKCoreKit/Basics
  - FBSDKLoginKit (5.8.0):
    - FBSDKLoginKit/Login (= 5.8.0)
  - FBSDKLoginKit/Login (5.8.0):
    - FBSDKCoreKit (~> 5.0)
  - Flutter (1.0.0)
....

Even using 5.13.0 version the problem persist. This is the only solution that worked for me until now

@iojason
Copy link

iojason commented Jan 8, 2020

Neither solution worked for me. flutter clean, clear DerivedData, pod deintegrate, then even tried explicitly stating FBSDK* to be 5.8.0 and set modular header to true in podfile did not do the trick. App is still running perfectly fine in the iOS/Android emulators.

pod 'FBSDKCoreKit', '5.8.0', :modular_headers => true
pod 'FBSDKLoginKit', '5.8.0'

Any other suggestions?

@ZebingZong
Copy link

For anyone that this issue still happens, can you guys try to add use_frameworks! after platform :ios, '9.0' as a new line to see whether it fixes the issue? Here is an example Podfile

platform :ios, '9.0'

use_frameworks!

target 'ASRIOS' do

  # Pods for ASRIOS
  pod 'FBSDKCoreKit', '5.11.1'
  pod 'FBSDKLoginKit', '5.11.1'
  pod 'FBSDKShareKit', '5.11.1'

  target 'ASRIOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'ASRIOSUITests' do
    # Pods for testing
  end

end

@Gursewak-Uppal
Copy link

I have managed to solve this issue by changing the Podfile

target 'Runner' do
# Flutter Pod
use_frameworks!
use_modular_headers!
------

Flutter clean
Delete Podfile.lock
pod install --repo-update
pod update FBSDKLoginKit

open .xcworkspace and in General-> Deployment Info set Target 11.0 also in Podfile set Target 11.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests