darwin-morocho / flutter-facebook-auth

A flutter plugin to add login with facebook in your flutter app
193 stars 127 forks source link

FBSDKCoreKit/FBSDKCoreKit.h file not found #126

Closed Wolfaks closed 2 years ago

Wolfaks commented 2 years ago

Hello, i have error again:

/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKCoreKitImport.h:29:10: error: 'FBSDKCoreKit/FBSDKCoreKit.h' file not found
     #import <FBSDKCoreKit/FBSDKCoreKit.h>
             ^
    <unknown>:0: error: could not build Objective-C module 'FBSDKLoginKit'
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

Could not build the application for the simulator.
Снимок экрана 2021-07-23 в 17 14 50 Снимок экрана 2021-07-23 в 17 16 00 Снимок экрана 2021-07-23 в 17 16 45

This problem is only iOS.

darwin-morocho commented 2 years ago

@Wolfaks For iOS are you using swift or Objective-C?

Sometimes the error can be fixed using flutter clean

Wolfaks commented 2 years ago

@Wolfaks For iOS are you using swift or Objective-C?

Sometimes the error can be fixed using flutter clean

I use swift I tried cleaning but the error remains

darwin-morocho commented 2 years ago

@Wolfaks I remember that you opened a similar issue before and you had a wrong configuration in your swift code

Did you try with flutter clean ?

Wolfaks commented 2 years ago

@Wolfaks I remember that you opened a similar issue before and you had a wrong configuration in your swift code

Did you try with flutter clean ?

Last time I downgraded flutter and dart verssions and the problem went away. Today she reappeared on her own. Yes, I've tried cleaning and reinstalling pods many times, but nothing helps.

darwin-morocho commented 2 years ago

@Wolfaks I remember that you opened a similar issue before and you had a wrong configuration in your swift code Did you try with flutter clean ?

Last time I downgraded flutter and dart verssions and the problem went away. Today she reappeared on her own. Yes, I've tried cleaning and reinstalling pods many times, but nothing helps.

Are you using null safety?

Wolfaks commented 2 years ago

After install pods:

Снимок экрана 2021-07-23 в 19 13 03

Flutter run, before FB error:

Снимок экрана 2021-07-23 в 19 14 39 Снимок экрана 2021-07-23 в 19 15 36

Are you using null safety? No

darwin-morocho commented 2 years ago

I am watching that you have null safety dependencies make sure that all dependencies that are you using are non null safety

darwin-morocho commented 2 years ago

Maybe this can help you https://developer.apple.com/forums/thread/128535

Also if you previously have installed a different version of flutter_facebook_auth maybe you need to follow the migration guide https://facebook.meedu.app/#/migration-guide

Wolfaks commented 2 years ago

No it didn't work for me

darwin-morocho commented 2 years ago

No it didn't work for me

Sorry I can't help you if your app configuration is wrong

Wolfaks commented 2 years ago

The second time the problem is solved by restoring the old code from the repository, running the old code and copying the new code into it.

volkangurol commented 2 years ago

I had similar problem in real device, #import <FBSDKCoreKit/FBSDKCoreKit.h> put this line in Runner-Bridging-Header.h file