I am trying to add the Facebook SDK to my iOS 8 Objective-C app in Xcode. I did the install according to the FB-dev instructions. However, I get a \"Could not build
For those who came here and made the same rookie mistake like I did. Maybe I can save you some time. I work on an old project which largely consists of Objective-C code. We try to implement new stuff in Swift.
This was what i tried in my Swift code
import FBSDKCoreKit
class SomeClass {
func doSomething {
FBSDKAppEvents.logEvent("Some Event")
}
}
But the compiler complained that it could not compile the module, etc.
How I solved it
import FBSDKCoreKit from my Swift code.Bridging-Header.h and imported FBSDKCoreKit there: #import