facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.79k stars 3.55k forks source link

FBSDK'type'Kit/FBSDK'type'Kit.h file not found, swift cocoapods #716

Closed LightD closed 9 years ago

LightD commented 9 years ago

I integrated Facebook-iOs-SDK 4.0 with my swift iOs project through cocoapods.. and in my bridging header (which is working because other libraries are working fine), I added #import <FBSDKCoreKit/FBSDKCoreKit.h>.. when I compile it says that FBSDKCoreKit/FBSDKCoreKit.h file not found.. I also tried with LoginKit, same result.. I'm not really sure what's the problem, or if i'm doing something wrong.. but from my point of view, it's not working, so I'm asking here!

perezpaya commented 9 years ago

Same here :/

adamsinger commented 9 years ago

Do you have use_frameworks! on in your Podfile? I've found that my build fails when use_frameworks! is on, but succeeds when it isn't.

tomoueda commented 9 years ago

I have the same issue. Deleting "use_frameworks!" break other dependencies.

LightD commented 9 years ago

@adamsinger yes I do have use_frameworks! in my Podfile..

christopherdbull commented 9 years ago

I've just run into this too

LightD commented 9 years ago

Not Only cocoapods actually.. I've been trying the whole day to get this to work.. I tried installing the frameworks from the website.. and I tried compiling the project.. both didn't work.. when you have a sw2ift project it just doesn't want to work.. P.S: Bolts framework is working perfectly.. but whatever FBSDKTypeKit .. that's not working..

chrisp-fb commented 9 years ago

Thanks for the feedback, we're looking into it.

chrisp-fb commented 9 years ago

I commented on https://github.com/facebook/facebook-ios-sdk/issues/725 which sounds like the same issue. The Facebook SDK is a static library and should not use the use_frameworks! flag. If you do have swift framework dependencies, you should be able to traditionally link to the downloadable frameworks instead of using Cocoapods to integrate with the Facebook SDK.

chrisp-fb commented 9 years ago

Closing this issue - Note I provided new workaround podspecs in https://github.com/facebook/facebook-ios-sdk/issues/725 that you can use.