Open lucapale opened 3 years ago
Can you provide some more insights about your issue? How is your AppDelegate.swift ?
This may be solved with this open PR, which suggests adding the following code
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
return true
}
This may be solved with this open PR, which suggests adding the following code
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. ApplicationDelegate.shared.application( application, didFinishLaunchingWithOptions: launchOptions ) return true }
it works for me!
@rigoarriaza It would be better if the Merge was in the #next branch.
@alexookah I've updated the PR to be merging into next
Hi all,
This was merged on branch next
and released as 3.1.2-rc.3
.
Looking forward to release as latest.
Best regards.
Just to confirm, this resolved the issue for me with crashing on Facebook login.
Ok then close this issue :)
This is the error after crash:
Terminating app due to uncaught exception 'InvalidOperationException', reason: 'As of v9.0, you must initialize the SDK prior to calling any methods or setting any properties. You can do this by calling 'FBSDKApplicationDelegate''s 'application:didFinishLaunchingWithOptions:' method.
After updating the AppSwift as describer in Facebook documentation link, then I get the following crash error:
Terminating app due to uncaught exception 'NSInvalidArgumentException'
Any suggestion to solve the problem? Thanks