I Opened My App in Xcode 10 and Now I Have Errors in 9.4.1: Sdkapplicationdelegate (Facebookcore)

Facebook Login swift No such module

I changed from

platform :ios, '8.0'

to

platform :ios, '10.0'

in my podfile

Facebook SDK sign in with Swift 3 iOS 10

You have to substitute didfinishlaunching and openurl AppDelegate methods with below:

public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool 
{
return SDKApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
}

public func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool
{
return SDKApplicationDelegate.shared.application(app, open: url, options: options)
}

iOS 9 Facebook Access Token is nil on future app launches

Even it didn't worked for me when I updated my iOS 9 but after try this solution it worked for me.

1) Add data in info.plist as shown image

Sample Image



Related Topics



Leave a reply



Submit