I have a very difficult build problem with my new project. I am trying to integrate the Facebook iOS SDK, but for some reason I am getting some weird errors. You try to use FBSDKLoginKit to display FBSDKLoginButton in the storyboard view.
The first hint of an error is the βerrorβ when trying #import <FBSDKLoginKit/FBSDKLoginKit.h> (however, it only appears as an error in the editor, it still compiles):
"Failed to create FBSDKLoginKit module."
Strange, this βerrorβ went away after messing around with some build settings related to the module, even when I returned them to their original values.
It's also interesting if I explicitly reference the FBSDKLoginButton class from my view controller (for example, add a button programmatically), then creating a storyboard based instance works fine. Therefore, I suppose that this must be a problem with the linker or something, but I, admittedly, am not a professional in this matter.
None of the documentation in the Facebook SDK mentions this issue, which I can find is strange because, as I said, this is a completely new clean project.
source share