I have several issues with the Facebook FBSDK Kit, which my fellow programmers in the project don't have. I have already set up the pods, cleaned the build files, deleted the pods, updated them but I get the same errors again.
Semantic issue - Unknown type name 'SFAuthenticationSession' AR semantic issue - No known instance method for selector 'initWithURL:callbackURLScheme:completionHandler:'
in the FBSDKApplicationDelegate.m
I am using the FBSDK Corekit 4.25.0.
Does anyone have an idea how to fix this?
In my developer team I am the only one who gets this error
Second error message
The bug you are experiencing seems to be an issue the 4.25.0 SDK for Facebook. I had the same problem (using Xcode Version 9.0 beta (9M136h)), and I was able to resolve the problem by going back to version 4.24.0. In the Podfile, I was thrown dependency errors when I tried to do this:
pod "FacebookCore", "4.24.0"
pod "FacebookLogIn", "4.24.0"
I am not sure why the above isn't working. However, I followed the instructions on Facebook's iOS SDK Git Repository, and changed it to this:
pod "FBSDKLoginKit", "4.24.0"
pod "FBSDKCoreKit", "4.24.0"
pod "FBSDKShareKit", "4.24.0"
I ran "pod clean" and then "pod install", and my project worked again without any errors. Hopefully this is helpful.
Also, make sure in your Xcode project, you import the Facebook SDK like this:
import FBSDKCoreKit
import FBSDKLoginKit
import FBSDKShareKit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With