I am trying to configure the main SDK for Facebook in my project. My project is based on Swift, but the SDK is ObjectiveC.
I copied both Bolts.framework, and FBSDKCoreKit.Frameworkin my project. I am setting up a bridge file that works fine. Then I added the following to the AppDelegate.swift file:
import FBSDKCoreKit
func applicationDidBecomeActive(_ application: UIApplication) {
FBSDKAppEvents.activateApp()
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
return true
}
func application(_ application: UIApplication, openURL url: URL, sourceApplication: String, annotation: Any) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
}
The project is under construction, although it failed to start on my device with an error FBSDKCoreKit.framework/FBSDKCoreKit: no matching architecture in universal wrapper.
source
share